Spaces:
Runtime error
Runtime error
update cap
Browse files
app.py
CHANGED
|
@@ -237,11 +237,13 @@ def upload_img(gr_img, text_input, chat_state, chatbot):
|
|
| 237 |
value="Start Chatting", interactive=False), chat_state, img_list, chatbot
|
| 238 |
|
| 239 |
|
| 240 |
-
def gradio_ask(user_message, chatbot, chat_state, radio):
|
| 241 |
-
if len(user_message) == 0:
|
| 242 |
-
return gr.update(interactive=True, placeholder='Input should not be empty!'), chatbot, chat_state
|
| 243 |
|
| 244 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 245 |
chatbot = chatbot + [[user_message, None]]
|
| 246 |
return chatbot, chat_state
|
| 247 |
|
|
|
|
| 237 |
value="Start Chatting", interactive=False), chat_state, img_list, chatbot
|
| 238 |
|
| 239 |
|
|
|
|
|
|
|
|
|
|
| 240 |
|
| 241 |
+
def gradio_ask(user_message, chatbot, chat_state,radio):
|
| 242 |
+
# if len(user_message) == 0:
|
| 243 |
+
# return gr.update(interactive=True, placeholder='Input should not be empty!'), chatbot, chat_state
|
| 244 |
+
|
| 245 |
+
|
| 246 |
+
chat.ask(user_message, chat_state,radio,model_name)
|
| 247 |
chatbot = chatbot + [[user_message, None]]
|
| 248 |
return chatbot, chat_state
|
| 249 |
|