Sfoglia il codice sorgente

更新service中的默认值,更新readme。

hellofinch 1 anno fa
parent
commit
e1f1c7167e
3 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 1 1
      README_ja-JP.md
  2. 1 1
      README_zh-CN.md
  3. 2 2
      pdf2zh/translator.py

+ 1 - 1
README_ja-JP.md

@@ -63,7 +63,7 @@
 
 インストールなしで [公共サービス](https://pdf2zh.com/) をオンラインで試すことができます。  
 
-### Hugging Face デモ
+### デモ
 
 インストールなしで [HuggingFace上のデモ](https://huggingface.co/spaces/reycn/PDFMathTranslate-Docker), [ModelScope上のデモ](https://www.modelscope.cn/studios/AI-ModelScope/PDFMathTranslate) を試すことができます。
 デモの計算リソースは限られているため、乱用しないようにしてください。

+ 1 - 1
README_zh-CN.md

@@ -63,7 +63,7 @@
 
 你可以立即尝试 [免费公共服务](https://pdf2zh.com/) 而无需安装
 
-### Hugging Face 在线演示
+### 在线演示
 
 你可以立即尝试 [在 HuggingFace 上的在线演示](https://huggingface.co/spaces/reycn/PDFMathTranslate-Docker)和[魔搭的在线演示](https://www.modelscope.cn/studios/AI-ModelScope/PDFMathTranslate)而无需安装
 请注意,演示的计算资源有限,因此请避免滥用

+ 2 - 2
pdf2zh/translator.py

@@ -417,7 +417,7 @@ class AnythingLLMTranslator(BaseTranslator):
     name = "anythingllm"
     envs = {
         "AnythingLLM_URL": None,
-        "AnythingLLM_APIKEY": "api_key",
+        "AnythingLLM_APIKEY": None,
     }
 
     def __init__(self, lang_out, lang_in, model, envs=None):
@@ -453,7 +453,7 @@ class DifyTranslator(BaseTranslator):
     name = "dify"
     envs = {
         "DIFY_API_URL": None,  # 填写实际 Dify API 地址
-        "DIFY_API_KEY": "api_key",  # 替换为实际 API 密钥
+        "DIFY_API_KEY": None,  # 替换为实际 API 密钥
     }
 
     def __init__(self, lang_out, lang_in, model, envs=None):