Update src/app/model.py
Browse files- src/app/model.py +2 -2
src/app/model.py
CHANGED
@@ -53,8 +53,8 @@ def run_example(
|
|
53 |
"""
|
54 |
try:
|
55 |
# Check if image is None
|
56 |
-
|
57 |
-
|
58 |
|
59 |
# If there is no text input, use the task prompt as the prompt
|
60 |
prompt = task_prompt if text_input is None else task_prompt + text_input
|
|
|
53 |
"""
|
54 |
try:
|
55 |
# Check if image is None
|
56 |
+
if image is None:
|
57 |
+
gr.Warning("Please provide an image.")
|
58 |
|
59 |
# If there is no text input, use the task prompt as the prompt
|
60 |
prompt = task_prompt if text_input is None else task_prompt + text_input
|