small fix

This commit is contained in:
xunbu
2025-05-29 21:33:11 +08:00
parent 097efa6cb5
commit e6c125f4a9
3 changed files with 3 additions and 3 deletions

View File

@@ -442,7 +442,7 @@ def run_app():
port = find_free_port(initial_port)
if port != initial_port:
print(f"端口 {initial_port} 被占用,将使用端口 {port} 代替")
print("正在启动 DocuTranslate WebUI")
print(f"正在启动 DocuTranslate WebUI 版本号:{__version__}")
print(f"请用浏览器访问 http://127.0.0.1:{port} (部分终端可以使用ctrl+左键点击网址打开)")
uvicorn.run(app, host="127.0.0.1", port=port, workers=1)
except Exception as e:

View File

@@ -360,7 +360,7 @@
<div class="form-group">
<label for="convert_engin">解析引擎</label>
<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>
</select>
</div>

View File

@@ -1,7 +1,7 @@
import asyncio
import html
from pathlib import Path
from typing import Literal, ParamSpec, TypedDict
from typing import Literal
import markdown2
import jinja2
from docutranslate.agents import Agent, AgentArgs