Bofandra commited on
Commit
90dbbd9
1 Parent(s): c8058f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -115,11 +115,11 @@ def respond(
115
 
116
  response += token
117
 
118
- translated_response = translator.translate(response, src='en', dest=message_language).text
119
- #if(len(translated_response)>0):
120
- # yield translated_response
121
- ##else:
122
- yield response
123
 
124
 
125
  """
 
115
 
116
  response += token
117
 
118
+ translated_response = translator.translate(response, src='en', dest=message_language)
119
+ if(translated_response.text):
120
+ yield translated_response.text
121
+ else:
122
+ yield response
123
 
124
 
125
  """