Spaces:
Runtime error
Runtime error
posterllava
commited on
Commit
•
47ac2f8
1
Parent(s):
a5ee842
Update llava/serve/gradio_web_server.py
Browse files
llava/serve/gradio_web_server.py
CHANGED
@@ -238,7 +238,7 @@ def http_bot(state, model_selector, temperature, top_p, max_new_tokens, repeat_t
|
|
238 |
model_name = model_selector
|
239 |
|
240 |
if state.skip_next:
|
241 |
-
yield (state, state.to_gradio_chatbot(), None) + (no_change_btn,) *
|
242 |
return
|
243 |
|
244 |
if len(state.messages) == state.offset + 2:
|
@@ -258,7 +258,7 @@ def http_bot(state, model_selector, temperature, top_p, max_new_tokens, repeat_t
|
|
258 |
# No available worker
|
259 |
if worker_addr == "":
|
260 |
state.messages[-1][-1] = server_error_msg
|
261 |
-
yield (state, state.to_gradio_chatbot(), None, disable_btn, disable_btn)
|
262 |
return
|
263 |
|
264 |
# Construct prompt
|
|
|
238 |
model_name = model_selector
|
239 |
|
240 |
if state.skip_next:
|
241 |
+
yield (state, state.to_gradio_chatbot(), None) + (no_change_btn,) * 3
|
242 |
return
|
243 |
|
244 |
if len(state.messages) == state.offset + 2:
|
|
|
258 |
# No available worker
|
259 |
if worker_addr == "":
|
260 |
state.messages[-1][-1] = server_error_msg
|
261 |
+
yield (state, state.to_gradio_chatbot(), None, disable_btn, disable_btn, disable_btn)
|
262 |
return
|
263 |
|
264 |
# Construct prompt
|