Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -163,7 +163,9 @@ def llm_in_loop(history, system_prompt, recursive):
|
|
163 |
if name:
|
164 |
try:
|
165 |
result = str(tools[name].invoke(input=arguments))
|
166 |
-
result = get_summary(
|
|
|
|
|
167 |
except Exception as err:
|
168 |
result = f"💥 Error: {err}"
|
169 |
# msg = ChatMessage(
|
|
|
163 |
if name:
|
164 |
try:
|
165 |
result = str(tools[name].invoke(input=arguments))
|
166 |
+
result = get_summary(model=model, text=result)
|
167 |
+
print(result)
|
168 |
+
result = reslut.choices[0].message.content
|
169 |
except Exception as err:
|
170 |
result = f"💥 Error: {err}"
|
171 |
# msg = ChatMessage(
|