Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update gen/gemini.py
Browse files- gen/gemini.py +2 -2
gen/gemini.py
CHANGED
@@ -10,9 +10,9 @@ from gen.utils import parse_first_json_snippet
|
|
10 |
|
11 |
def determine_model_name(given_image=None):
|
12 |
if given_image is None:
|
13 |
-
return "gemini-pro"
|
14 |
else:
|
15 |
-
return "gemini-pro-vision"
|
16 |
|
17 |
def construct_image_part(given_image):
|
18 |
return {
|
|
|
10 |
|
11 |
def determine_model_name(given_image=None):
|
12 |
if given_image is None:
|
13 |
+
return "gemini-1.0-pro"
|
14 |
else:
|
15 |
+
return "gemini-1.0-pro-vision"
|
16 |
|
17 |
def construct_image_part(given_image):
|
18 |
return {
|