Spaces:
Running
Running
Update pdf2zh/gui.py
Browse files- pdf2zh/gui.py +9 -8
pdf2zh/gui.py
CHANGED
@@ -13,13 +13,13 @@ import cgi
|
|
13 |
|
14 |
# Map service names to pdf2zh service options
|
15 |
service_map = {
|
16 |
-
"Google": ("google", None, None),
|
17 |
-
"DeepL": ("deepl", "DEEPL_AUTH_KEY", None),
|
18 |
-
"DeepLX": ("deeplx", "DEEPLX_AUTH_KEY", None),
|
19 |
-
"Ollama": ("ollama", None, "gemma2"),
|
20 |
"OpenAI": ("openai", "OPENAI_API_KEY", "gpt-4o"),
|
21 |
-
"Azure": ("azure", "AZURE_APIKEY", None),
|
22 |
-
"Tencent": ("tencent", "TENCENT_SECRET_KEY", None),
|
23 |
}
|
24 |
lang_map = {
|
25 |
"Chinese": "zh",
|
@@ -213,7 +213,7 @@ custom_blue = gr.themes.Color(
|
|
213 |
)
|
214 |
|
215 |
with gr.Blocks(
|
216 |
-
title="
|
217 |
theme=gr.themes.Default(
|
218 |
primary_hue=custom_blue, spacing_size="md", radius_size="lg"
|
219 |
),
|
@@ -275,7 +275,8 @@ with gr.Blocks(
|
|
275 |
),
|
276 |
) as demo:
|
277 |
gr.Markdown(
|
278 |
-
"# [PDFMathTranslate @ GitHub](https://github.com/Byaidu/PDFMathTranslate)"
|
|
|
279 |
)
|
280 |
|
281 |
with gr.Row():
|
|
|
13 |
|
14 |
# Map service names to pdf2zh service options
|
15 |
service_map = {
|
16 |
+
#"Google": ("google", None, None),
|
17 |
+
#"DeepL": ("deepl", "DEEPL_AUTH_KEY", None),
|
18 |
+
#"DeepLX": ("deeplx", "DEEPLX_AUTH_KEY", None),
|
19 |
+
#"Ollama": ("ollama", None, "gemma2"),
|
20 |
"OpenAI": ("openai", "OPENAI_API_KEY", "gpt-4o"),
|
21 |
+
#"Azure": ("azure", "AZURE_APIKEY", None),
|
22 |
+
#"Tencent": ("tencent", "TENCENT_SECRET_KEY", None),
|
23 |
}
|
24 |
lang_map = {
|
25 |
"Chinese": "zh",
|
|
|
213 |
)
|
214 |
|
215 |
with gr.Blocks(
|
216 |
+
title="PDFBestTranslate - PDF Translation with preserved formats",
|
217 |
theme=gr.themes.Default(
|
218 |
primary_hue=custom_blue, spacing_size="md", radius_size="lg"
|
219 |
),
|
|
|
275 |
),
|
276 |
) as demo:
|
277 |
gr.Markdown(
|
278 |
+
#"# [PDFMathTranslate @ GitHub](https://github.com/Byaidu/PDFMathTranslate)"
|
279 |
+
"# [PDFMathTranslate——科研之心免费提供(更多科研AI智能体请点击)](https://ai.linkagi.top)"
|
280 |
)
|
281 |
|
282 |
with gr.Row():
|