Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -106,10 +106,10 @@ def pvsnp(problem):
|
|
| 106 |
{"messages": "Use tools to answer:"+problem},
|
| 107 |
stream_mode="updates",
|
| 108 |
):
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
return output
|
| 114 |
|
| 115 |
|
|
|
|
| 106 |
{"messages": "Use tools to answer:"+problem},
|
| 107 |
stream_mode="updates",
|
| 108 |
):
|
| 109 |
+
for _, update in step.items():
|
| 110 |
+
for message in update.get("messages", []):
|
| 111 |
+
message.pretty_print()
|
| 112 |
+
output.append(message.pretty_print())
|
| 113 |
return output
|
| 114 |
|
| 115 |
|