Spaces:
Runtime error
Runtime error
Update utils.py
Browse files
utils.py
CHANGED
@@ -8,7 +8,7 @@ def call_ai_api(prompt):
|
|
8 |
"top_p": 0.95,
|
9 |
"max_output_tokens": 5000000,
|
10 |
}
|
11 |
-
model = genai.GenerativeModel(model_name="gemini-1.
|
12 |
generation_config=generation_config)
|
13 |
response = model.generate_content(prompt)
|
14 |
return response.text
|
|
|
8 |
"top_p": 0.95,
|
9 |
"max_output_tokens": 5000000,
|
10 |
}
|
11 |
+
model = genai.GenerativeModel(model_name="gemini-1.0-pro-latest",
|
12 |
generation_config=generation_config)
|
13 |
response = model.generate_content(prompt)
|
14 |
return response.text
|