Update main.py
Browse files
main.py
CHANGED
@@ -159,8 +159,8 @@ async def on_message(message: cl.Message):
|
|
159 |
# Query the agent.
|
160 |
response = query_agent(agent=agent, query=message.content)
|
161 |
# Decode the response.
|
162 |
-
decoded_response = decode_response(response)
|
163 |
|
164 |
# Write the response to the Streamlit app.
|
165 |
-
result = write_response(decoded_response)
|
166 |
-
await cl.Message(author="COPILOT",content=GoogleTranslator(source='auto', target='fr').translate(
|
|
|
159 |
# Query the agent.
|
160 |
response = query_agent(agent=agent, query=message.content)
|
161 |
# Decode the response.
|
162 |
+
#decoded_response = decode_response(response)
|
163 |
|
164 |
# Write the response to the Streamlit app.
|
165 |
+
#result = write_response(decoded_response)
|
166 |
+
await cl.Message(author="COPILOT",content=GoogleTranslator(source='auto', target='fr').translate(response)).send()
|