Spaces:
Sleeping
Sleeping
Update run.py
Browse files
run.py
CHANGED
|
@@ -70,6 +70,14 @@ def generate_response(history):
|
|
| 70 |
)
|
| 71 |
)
|
| 72 |
yield history
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
|
| 74 |
with gr.Blocks() as demo:
|
| 75 |
chatbot = gr.Chatbot(type="messages", height=500, show_copy_button=True)
|
|
|
|
| 70 |
)
|
| 71 |
)
|
| 72 |
yield history
|
| 73 |
+
history.append(
|
| 74 |
+
ChatMessage(
|
| 75 |
+
role="assistant",
|
| 76 |
+
content="Failed again",
|
| 77 |
+
metadata={"title": "Failed again", "id": 7, "parent_id": 1},
|
| 78 |
+
)
|
| 79 |
+
)
|
| 80 |
+
yield history
|
| 81 |
|
| 82 |
with gr.Blocks() as demo:
|
| 83 |
chatbot = gr.Chatbot(type="messages", height=500, show_copy_button=True)
|