Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -161,8 +161,7 @@ def llm_in_loop(history, system_prompt, recursive):
|
|
| 161 |
if name:
|
| 162 |
try:
|
| 163 |
result = str(tools[name].invoke(input=arguments))
|
| 164 |
-
result = get_summary(model=model, text=result)
|
| 165 |
-
result = reslut.choices[0].message.content
|
| 166 |
except Exception as err:
|
| 167 |
result = f"π₯ Error: {err}"
|
| 168 |
# msg = ChatMessage(
|
|
|
|
| 161 |
if name:
|
| 162 |
try:
|
| 163 |
result = str(tools[name].invoke(input=arguments))
|
| 164 |
+
result = get_summary(model=model, text=result).choices[0].message.content
|
|
|
|
| 165 |
except Exception as err:
|
| 166 |
result = f"π₯ Error: {err}"
|
| 167 |
# msg = ChatMessage(
|