Spaces:
Runtime error
Runtime error
Update src/app/response.py
Browse files- src/app/response.py +1 -1
src/app/response.py
CHANGED
@@ -40,7 +40,7 @@ def describe_image(image: str, question: str) -> str:
|
|
40 |
try:
|
41 |
# Check if image or question is None
|
42 |
if not image or not question:
|
43 |
-
|
44 |
|
45 |
# Message format for the model
|
46 |
msgs = [{"role": "user", "content": [image, question]}]
|
|
|
40 |
try:
|
41 |
# Check if image or question is None
|
42 |
if not image or not question:
|
43 |
+
gr.Warning("Please provide an image and a question.")
|
44 |
|
45 |
# Message format for the model
|
46 |
msgs = [{"role": "user", "content": [image, question]}]
|