aisltnab commited on
Commit
fe02d13
·
1 Parent(s): 3dd561a

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +2 -2
run.py CHANGED
@@ -8,8 +8,8 @@ def add_file(history, task_history, file):
8
  return history, task_history
9
 
10
 
11
- chatbot = []
12
- task_history = []
13
  with gr.Blocks() as demo:
14
  addfile_btn = gr.UploadButton("Upload", file_types=["image"])
15
  addfile_btn.upload(add_file, [chatbot, task_history, addfile_btn], [chatbot, task_history], show_progress=True)
 
8
  return history, task_history
9
 
10
 
11
+ chatbot = gr.Chatbot(label='Qwen-VL-Chat', elem_classes="control-height", height=520)
12
+ task_history = gr.State([])
13
  with gr.Blocks() as demo:
14
  addfile_btn = gr.UploadButton("Upload", file_types=["image"])
15
  addfile_btn.upload(add_file, [chatbot, task_history, addfile_btn], [chatbot, task_history], show_progress=True)