Update src/model.py
Browse files- 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 |
-
raise gr.
|
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:
|