Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,9 @@ import time
|
|
12 |
|
13 |
import google.generativeai as genai
|
14 |
|
15 |
-
|
|
|
|
|
16 |
|
17 |
def upload_to_gemini(path, mime_type=None):
|
18 |
"""Uploads the given file to Gemini.
|
|
|
12 |
|
13 |
import google.generativeai as genai
|
14 |
|
15 |
+
load_dotenv()
|
16 |
+
os.getenv("GOOGLE_API_KEY")
|
17 |
+
genai.configure(api_key=os.getenv("GOOGLE_API_KEY"))
|
18 |
|
19 |
def upload_to_gemini(path, mime_type=None):
|
20 |
"""Uploads the given file to Gemini.
|