Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
utils.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
import google.generativeai as genai
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
def call_ai_api(prompt):
|
| 5 |
# Set up the model
|
| 6 |
generation_config = {
|
|
|
|
| 1 |
import google.generativeai as genai
|
| 2 |
+
import os
|
| 3 |
+
os.getenv
|
| 4 |
+
genai.configure(api_key=os.getenv("gemini_token")
|
| 5 |
def call_ai_api(prompt):
|
| 6 |
# Set up the model
|
| 7 |
generation_config = {
|