Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -90,7 +90,8 @@ class NanoBananaImageGenerator:
|
|
| 90 |
for i in range(batch_count):
|
| 91 |
try:
|
| 92 |
print(f"Debug: Batch {i+1} - Attempting to call Gemini API.")
|
| 93 |
-
|
|
|
|
| 94 |
contents=content_parts,
|
| 95 |
generation_config=generation_config
|
| 96 |
)
|
|
|
|
| 90 |
for i in range(batch_count):
|
| 91 |
try:
|
| 92 |
print(f"Debug: Batch {i+1} - Attempting to call Gemini API.")
|
| 93 |
+
# Changed the model to a more stable 'gemini-pro-vision'
|
| 94 |
+
response = GenerativeModel("gemini-pro-vision").generate_content(
|
| 95 |
contents=content_parts,
|
| 96 |
generation_config=generation_config
|
| 97 |
)
|