Spaces:
Sleeping
Sleeping
Reuben Tan commited on
Commit ·
03aa01e
1
Parent(s): 7442d20
fix restart problem
Browse files
app.py
CHANGED
|
@@ -109,7 +109,7 @@ def gradio_reset(chat_state, img_list):
|
|
| 109 |
chat_state.messages = []
|
| 110 |
if img_list is not None:
|
| 111 |
img_list = []
|
| 112 |
-
return None, gr.update(value=None, interactive=True), gr.update(
|
| 113 |
|
| 114 |
'''def upload_imgorvideo(gr_video, gr_img, text_input, chat_state,chatbot):
|
| 115 |
if args.model_type == 'vicuna':
|
|
|
|
| 109 |
chat_state.messages = []
|
| 110 |
if img_list is not None:
|
| 111 |
img_list = []
|
| 112 |
+
return None, gr.update(value=None, interactive=True), gr.update(placeholder='Please upload your video first', interactive=False),gr.update(value="Upload & Start Chat", interactive=True), chat_state, img_list
|
| 113 |
|
| 114 |
'''def upload_imgorvideo(gr_video, gr_img, text_input, chat_state,chatbot):
|
| 115 |
if args.model_type == 'vicuna':
|