Spaces:
Running
Running
Update model name
Browse filesSwitches to gemini-2.5-pro-preview-06-05 to fix error due to unavailable old model
app.py
CHANGED
@@ -83,7 +83,7 @@ def generate_content_str(api_key, prompt, pil_image, tries=PROMPT_RETRYIES):
|
|
83 |
while True:
|
84 |
try:
|
85 |
response = client.models.generate_content(
|
86 |
-
model="gemini-2.5-pro-
|
87 |
contents=[prompt, pil_image],
|
88 |
config=generate_content_config,
|
89 |
)
|
|
|
83 |
while True:
|
84 |
try:
|
85 |
response = client.models.generate_content(
|
86 |
+
model="gemini-2.5-pro-preview-06-05",
|
87 |
contents=[prompt, pil_image],
|
88 |
config=generate_content_config,
|
89 |
)
|