Spaces:
Running
Running
Update app.py
Browse files
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)
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
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 |
"""
|