sitammeur commited on
Commit
0220555
·
verified ·
1 Parent(s): 4118429

Update src/app/response.py

Browse files
Files changed (1) hide show
  1. src/app/response.py +1 -1
src/app/response.py CHANGED
@@ -39,7 +39,7 @@ def describe_image(image: str, question: str) -> str:
39
  """
40
  try:
41
  # Check if image or question is None
42
- if image is None or question is None:
43
  raise gr.Error("Please provide an image and a question.")
44
 
45
  # Message format for the model
 
39
  """
40
  try:
41
  # Check if image or question is None
42
+ if not image or not question:
43
  raise gr.Error("Please provide an image and a question.")
44
 
45
  # Message format for the model