small fix
This commit is contained in:
@@ -442,7 +442,7 @@ def run_app():
|
|||||||
port = find_free_port(initial_port)
|
port = find_free_port(initial_port)
|
||||||
if port != initial_port:
|
if port != initial_port:
|
||||||
print(f"端口 {initial_port} 被占用,将使用端口 {port} 代替")
|
print(f"端口 {initial_port} 被占用,将使用端口 {port} 代替")
|
||||||
print("正在启动 DocuTranslate WebUI")
|
print(f"正在启动 DocuTranslate WebUI 版本号:{__version__}")
|
||||||
print(f"请用浏览器访问 http://127.0.0.1:{port} (部分终端可以使用ctrl+左键点击网址打开)")
|
print(f"请用浏览器访问 http://127.0.0.1:{port} (部分终端可以使用ctrl+左键点击网址打开)")
|
||||||
uvicorn.run(app, host="127.0.0.1", port=port, workers=1)
|
uvicorn.run(app, host="127.0.0.1", port=port, workers=1)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
@@ -360,7 +360,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="convert_engin">解析引擎</label>
|
<label for="convert_engin">解析引擎</label>
|
||||||
<select id="convert_engin" name="convert_engin">
|
<select id="convert_engin" name="convert_engin">
|
||||||
<option value="mineru" selected>minerU(推荐)</option>
|
<option value="mineru" selected>minerU(推荐)</option>
|
||||||
<option value="docling" id="docling">Docling</option>
|
<option value="docling" id="docling">Docling</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
import html
|
import html
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Literal, ParamSpec, TypedDict
|
from typing import Literal
|
||||||
import markdown2
|
import markdown2
|
||||||
import jinja2
|
import jinja2
|
||||||
from docutranslate.agents import Agent, AgentArgs
|
from docutranslate.agents import Agent, AgentArgs
|
||||||
|
|||||||
Reference in New Issue
Block a user