Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -51,11 +51,11 @@ def coref_chat(user_input):
|
|
| 51 |
preds = model.predict(texts=[working_text])
|
| 52 |
clusters = preds[0].get_clusters()
|
| 53 |
|
| 54 |
-
# 3. 整理輸出格式 (嚴格按照
|
| 55 |
result = f"✨ {mode_notice}\n"
|
| 56 |
result += f"📝 英文邏輯空間: {working_text}\n"
|
| 57 |
|
| 58 |
-
# ---
|
| 59 |
try:
|
| 60 |
translation_back = GoogleTranslator(source='en', target='zh-TW').translate(working_text)
|
| 61 |
result += f"📖 英翻中: {translation_back}\n"
|
|
|
|
| 51 |
preds = model.predict(texts=[working_text])
|
| 52 |
clusters = preds[0].get_clusters()
|
| 53 |
|
| 54 |
+
# 3. 整理輸出格式 (嚴格按照你的要求排版)
|
| 55 |
result = f"✨ {mode_notice}\n"
|
| 56 |
result += f"📝 英文邏輯空間: {working_text}\n"
|
| 57 |
|
| 58 |
+
# --- 英文翻譯中文 ---
|
| 59 |
try:
|
| 60 |
translation_back = GoogleTranslator(source='en', target='zh-TW').translate(working_text)
|
| 61 |
result += f"📖 英翻中: {translation_back}\n"
|