robert commited on
Commit
5c5d824
·
1 Parent(s): b68dd3b

Fixing the clear button to not throw error

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -122,7 +122,7 @@ with gr.Blocks() as demo:
122
  submit_button = gr.Button("Submit")
123
 
124
  with gr.Row():
125
- clear = gr.ClearButton([msg, chatbot_openai, chatbot_huggingface])
126
 
127
  def respond(
128
  message: str,
 
122
  submit_button = gr.Button("Submit")
123
 
124
  with gr.Row():
125
+ clear = gr.ClearButton([msg])
126
 
127
  def respond(
128
  message: str,