sitammeur commited on
Commit
30ed5b5
1 Parent(s): 53409f7

Update src/app/model.py

Browse files
Files changed (1) hide show
  1. 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
- # if image is None:
57
- # raise gr.Error("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
 
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