mattb512 commited on
Commit
cc7a5fe
1 Parent(s): 9514d01
Files changed (1) hide show
  1. serve/gradio_web_server.py +1 -0
serve/gradio_web_server.py CHANGED
@@ -117,6 +117,7 @@ def add_text(state, text, image, image_process_mode, request: gr.Request):
117
 
118
  if not text or not image:
119
  gr.Warning("Please provide both a prompt and an image.")
 
120
  return (state, state.to_gradio_chatbot(), "", None) + (no_change_btn,) * 5
121
 
122
  if len(text) <= 0 and image is None:
 
117
 
118
  if not text or not image:
119
  gr.Warning("Please provide both a prompt and an image.")
120
+ state.skip_next = True
121
  return (state, state.to_gradio_chatbot(), "", None) + (no_change_btn,) * 5
122
 
123
  if len(text) <= 0 and image is None: