Spaces:
Paused
Paused
binary-husky
commited on
Commit
•
3dd15de
1
Parent(s):
b4f0be3
Update multi_language.py
Browse files- multi_language.py +1 -1
multi_language.py
CHANGED
@@ -228,7 +228,7 @@ def trans(word_to_translate, language, special=False):
|
|
228 |
# for a,b in zip(res_before_trans, res_after_trans):
|
229 |
# translated_result[a] = b
|
230 |
# except:
|
231 |
-
print('GPT
|
232 |
res_before_trans = eval(result[i-1])
|
233 |
for a in res_before_trans:
|
234 |
translated_result[a] = None
|
|
|
228 |
# for a,b in zip(res_before_trans, res_after_trans):
|
229 |
# translated_result[a] = b
|
230 |
# except:
|
231 |
+
print('GPT answers with unexpected format, some words may not be translated, but you can try again later to increase translation coverage.')
|
232 |
res_before_trans = eval(result[i-1])
|
233 |
for a in res_before_trans:
|
234 |
translated_result[a] = None
|