Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -158,8 +158,6 @@ async def chat(request: MessageRequest):
|
|
| 158 |
message = request.message # Access the message from the request body
|
| 159 |
language = request.language
|
| 160 |
language_code = request.language.split('-')[0]
|
| 161 |
-
if language_code not in LANGUAGES:
|
| 162 |
-
return {"response": "Unsupported language selected."}
|
| 163 |
response = handle_query(message) # Process the message
|
| 164 |
response1 = response
|
| 165 |
try:
|
|
|
|
| 158 |
message = request.message # Access the message from the request body
|
| 159 |
language = request.language
|
| 160 |
language_code = request.language.split('-')[0]
|
|
|
|
|
|
|
| 161 |
response = handle_query(message) # Process the message
|
| 162 |
response1 = response
|
| 163 |
try:
|