Reality123b commited on
Commit
f6aa223
·
verified ·
1 Parent(s): a28cf0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -295,7 +295,7 @@ def respond(
295
  if val[0]:
296
  # Only translate longer messages
297
  if len(val[0].split()) > 2:
298
- trans_user_msg, *, * = translate_text(val[0])
299
  messages.append({"role": "user", "content": trans_user_msg})
300
  else:
301
  messages.append({"role": "user", "content": val[0]})
 
295
  if val[0]:
296
  # Only translate longer messages
297
  if len(val[0].split()) > 2:
298
+ trans_user_msg, original_lang, was_transliterated = translate_text(val[0])
299
  messages.append({"role": "user", "content": trans_user_msg})
300
  else:
301
  messages.append({"role": "user", "content": val[0]})