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

Update src/app/response.py

Browse files
Files changed (1) hide show
  1. 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
- raise gr.Error("Please provide an image and a question.")
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]}]