Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,7 +55,7 @@ def run_agent_stream(history, question, groq_key, reddit_id, reddit_secret, redd
|
|
| 55 |
is_final = msg.response_metadata.get("finish_reason") == "stop"
|
| 56 |
is_supervisor = msg.name == "supervisor"
|
| 57 |
if is_final and is_supervisor:
|
| 58 |
-
history.append(ChatMessage(role="
|
| 59 |
history.append(ChatMessage(role="assistant", content=content, metadata= {"title": "✅ Final Report"}))
|
| 60 |
yield history, "", gr.update(interactive=True)
|
| 61 |
else:
|
|
|
|
| 55 |
is_final = msg.response_metadata.get("finish_reason") == "stop"
|
| 56 |
is_supervisor = msg.name == "supervisor"
|
| 57 |
if is_final and is_supervisor:
|
| 58 |
+
history.append(ChatMessage(role="user",content=" "))
|
| 59 |
history.append(ChatMessage(role="assistant", content=content, metadata= {"title": "✅ Final Report"}))
|
| 60 |
yield history, "", gr.update(interactive=True)
|
| 61 |
else:
|