Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ async def analyze_image_with_ai(image_data: bytes, question: str | None, api_key
|
|
| 44 |
try:
|
| 45 |
# Set the API key in environment for Gemini
|
| 46 |
#os.environ['GEMINI_API_KEY'] = api_key
|
| 47 |
-
if question is None or
|
| 48 |
logger.info(f"Question is {question}. Enforcing the default.")
|
| 49 |
question = """
|
| 50 |
<vision_task>
|
|
|
|
| 44 |
try:
|
| 45 |
# Set the API key in environment for Gemini
|
| 46 |
#os.environ['GEMINI_API_KEY'] = api_key
|
| 47 |
+
if question is None or question is "":
|
| 48 |
logger.info(f"Question is {question}. Enforcing the default.")
|
| 49 |
question = """
|
| 50 |
<vision_task>
|