Spaces:
Runtime error
Runtime error
Update src/app/response.py
Browse files- 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
|
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
|