Spaces:
Build error
Build error
Update run.py
Browse files
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)
|