OuroborosM commited on
Commit
d5513fd
·
1 Parent(s): 66d2fc7

Update app.py

Browse files

correct gradio main defect

Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -363,9 +363,10 @@ with gr.Blocks() as demo:
363
  chathmi2,
364
  title="STLA BABY - YOUR FRIENDLY GUIDE",
365
  description= "v0.3: Powered by MECH Core Team",
366
- upload_button = gr.UploadButton("Upload File", file_count="multiple")
367
  )
368
- main.upload_button.upload(func_upload_file, [main.upload_button, main.chatbot], main.chatbot)
 
369
 
370
  # demo = gr.Interface(
371
  # chathmi,
 
363
  chathmi2,
364
  title="STLA BABY - YOUR FRIENDLY GUIDE",
365
  description= "v0.3: Powered by MECH Core Team",
366
+
367
  )
368
+ upload_button = gr.UploadButton("Upload File", file_count="multiple")
369
+ upload_button.upload(func_upload_file, [upload_button, main.chatbot], main.chatbot)
370
 
371
  # demo = gr.Interface(
372
  # chathmi,