abidlabs HF staff commited on
Commit
38d8f54
·
verified ·
1 Parent(s): 734c8a2

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +8 -0
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)