Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -88,7 +88,7 @@ print('Initialization Finished')
|
|
88 |
# Gradio Setting
|
89 |
# ========================================
|
90 |
|
91 |
-
|
92 |
def gradio_reset(chat_state, img_list):
|
93 |
if chat_state is not None:
|
94 |
chat_state.messages = []
|
@@ -122,7 +122,6 @@ def upload_imgorvideo(gr_video, text_input, chat_state, chatbot):
|
|
122 |
# # img_list = []
|
123 |
# return gr.update(interactive=False), gr.update(interactive=False, placeholder='Currently, only one input is supported'), gr.update(value="Currently, only one input is supported", interactive=False), chat_state, None,chatbot
|
124 |
|
125 |
-
@spaces.GPU
|
126 |
def gradio_ask(user_message, chatbot, chat_state):
|
127 |
if len(user_message) == 0:
|
128 |
return gr.update(interactive=True, placeholder='Input should not be empty!'), chatbot, chat_state
|
|
|
88 |
# Gradio Setting
|
89 |
# ========================================
|
90 |
|
91 |
+
|
92 |
def gradio_reset(chat_state, img_list):
|
93 |
if chat_state is not None:
|
94 |
chat_state.messages = []
|
|
|
122 |
# # img_list = []
|
123 |
# return gr.update(interactive=False), gr.update(interactive=False, placeholder='Currently, only one input is supported'), gr.update(value="Currently, only one input is supported", interactive=False), chat_state, None,chatbot
|
124 |
|
|
|
125 |
def gradio_ask(user_message, chatbot, chat_state):
|
126 |
if len(user_message) == 0:
|
127 |
return gr.update(interactive=True, placeholder='Input should not be empty!'), chatbot, chat_state
|