Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,6 +55,14 @@ def coref_chat(user_input):
|
|
| 55 |
|
| 56 |
# 3. 輸出結果整理
|
| 57 |
result = f"✨ {mode_notice}\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
result += f"📝 英文邏輯空間: {working_text}\n"
|
| 59 |
result += "---------------------------------\n"
|
| 60 |
|
|
|
|
| 55 |
|
| 56 |
# 3. 輸出結果整理
|
| 57 |
result = f"✨ {mode_notice}\n"
|
| 58 |
+
|
| 59 |
+
# --- 新增:將運算原句翻回中文 ---
|
| 60 |
+
try:
|
| 61 |
+
full_text_zh = GoogleTranslator(source='en', target='zh-CN').translate(working_text)
|
| 62 |
+
result += f"📖 語意對照: {full_text_zh}\n"
|
| 63 |
+
except:
|
| 64 |
+
pass
|
| 65 |
+
|
| 66 |
result += f"📝 英文邏輯空間: {working_text}\n"
|
| 67 |
result += "---------------------------------\n"
|
| 68 |
|