binary-husky commited on
Commit
3dd15de
1 Parent(s): b4f0be3

Update multi_language.py

Browse files
Files changed (1) hide show
  1. 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