sitammeur commited on
Commit
4531458
1 Parent(s): 1a2d2b9

Update src/model.py

Browse files
Files changed (1) hide show
  1. src/model.py +1 -1
src/model.py CHANGED
@@ -31,7 +31,7 @@ def run_example(task_prompt, image, text_input=None):
31
  """
32
  # Check if the image is provided
33
  if not image:
34
- gr.error("No image provided")
35
 
36
  # If there is no text input, use the task prompt as the prompt
37
  if text_input is None:
 
31
  """
32
  # Check if the image is provided
33
  if not image:
34
+ raise gr.error("No image provided")
35
 
36
  # If there is no text input, use the task prompt as the prompt
37
  if text_input is None: