Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -91,13 +91,6 @@ async def chat(request: MessageRequest):
|
|
91 |
print(f"Translation error: {e}")
|
92 |
response1 = "Sorry, I couldn't translate the response."
|
93 |
print(f"Selected Language: {language}")
|
94 |
-
message_data = {
|
95 |
-
"sender": "User",
|
96 |
-
"message": message,
|
97 |
-
"response": response1,
|
98 |
-
"timestamp": datetime.datetime.now().isoformat()
|
99 |
-
}
|
100 |
-
chat_history.append(message_data)
|
101 |
return {"response": response1}
|
102 |
|
103 |
@app.get("/")
|
|
|
91 |
print(f"Translation error: {e}")
|
92 |
response1 = "Sorry, I couldn't translate the response."
|
93 |
print(f"Selected Language: {language}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
return {"response": response1}
|
95 |
|
96 |
@app.get("/")
|