Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -95,9 +95,11 @@ def respond(message,
|
|
95 |
print(message_language)
|
96 |
print(translator.translate(message))
|
97 |
en_message = translator.translate(message).text
|
|
|
98 |
except:
|
|
|
99 |
print("en_message exception occurred")
|
100 |
-
|
101 |
#print(messages)
|
102 |
|
103 |
response = ""
|
|
|
95 |
print(message_language)
|
96 |
print(translator.translate(message))
|
97 |
en_message = translator.translate(message).text
|
98 |
+
messages.append({"role": "user", "content": en_message})
|
99 |
except:
|
100 |
+
messages.append({"role": "user", "content": message})
|
101 |
print("en_message exception occurred")
|
102 |
+
|
103 |
#print(messages)
|
104 |
|
105 |
response = ""
|