Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -191,6 +191,7 @@ async def chat(request: MessageRequest):
|
|
| 191 |
if language_code not in LANGUAGES:
|
| 192 |
return {"response": "Unsupported language selected."}
|
| 193 |
response = handle_query(message) # Process the message
|
|
|
|
| 194 |
try:
|
| 195 |
response1 = translator.translate(response, dest=language_code).text
|
| 196 |
except Exception as e:
|
|
|
|
| 191 |
if language_code not in LANGUAGES:
|
| 192 |
return {"response": "Unsupported language selected."}
|
| 193 |
response = handle_query(message) # Process the message
|
| 194 |
+
response1 = response
|
| 195 |
try:
|
| 196 |
response1 = translator.translate(response, dest=language_code).text
|
| 197 |
except Exception as e:
|