MEOW commited on
Commit
bb0ff58
·
unverified ·
1 Parent(s): 086a811

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -147,7 +147,7 @@ with gr.Blocks() as demo:
147
  clear = gr.Button("Clear")
148
 
149
  # Set up event handler (Event handlers should be defined within the 'with gr.Blocks() as demo:' block)
150
- load_btn.click(load_documents, inputs=[gr.File,gr.Textbook], outputs=[load_output])
151
  msg.submit(stream_response, inputs=[msg, chatbot], outputs=[chatbot]) # Use submit button instead of msg
152
  clear.click(lambda: None, None, chatbot, queue=False)
153
 
 
147
  clear = gr.Button("Clear")
148
 
149
  # Set up event handler (Event handlers should be defined within the 'with gr.Blocks() as demo:' block)
150
+ load_btn.click(load_documents, inputs=[file_input], outputs=[load_output])
151
  msg.submit(stream_response, inputs=[msg, chatbot], outputs=[chatbot]) # Use submit button instead of msg
152
  clear.click(lambda: None, None, chatbot, queue=False)
153