Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -188,11 +188,11 @@ def echo(message, history):
|
|
188 |
def echo_agent(message, history):
|
189 |
try:
|
190 |
response = agent.chat(message, output_type= 'text')
|
191 |
-
explanation = agent.explain()
|
192 |
|
193 |
-
result = "Answer: \n" + '\n' + response + '\n' + '\n' + "Explanation: \n" + '\n' + explanation
|
194 |
|
195 |
-
return
|
196 |
except Exception as e:
|
197 |
error_message = f"An error occurred: {e}"+str(e.with_traceback) + str(e.args)
|
198 |
return error_message
|
|
|
188 |
def echo_agent(message, history):
|
189 |
try:
|
190 |
response = agent.chat(message, output_type= 'text')
|
191 |
+
# explanation = agent.explain()
|
192 |
|
193 |
+
# result = "Answer: \n" + '\n' + response.str() + '\n' + '\n' + "Explanation: \n" + '\n' + explanation
|
194 |
|
195 |
+
return response
|
196 |
except Exception as e:
|
197 |
error_message = f"An error occurred: {e}"+str(e.with_traceback) + str(e.args)
|
198 |
return error_message
|