Spaces:
Sleeping
Sleeping
Add environ variables
Browse files
resume_generation_gemini_pro.py
CHANGED
@@ -52,7 +52,8 @@ def extract_text(file_path):
|
|
52 |
# auth.authenticate_user()
|
53 |
|
54 |
import os
|
55 |
-
|
|
|
56 |
|
57 |
# !pip install python-docx
|
58 |
|
@@ -65,7 +66,7 @@ from docx import Document
|
|
65 |
import google.generativeai as genai
|
66 |
from datetime import datetime
|
67 |
|
68 |
-
api_key_google =
|
69 |
genai.configure(api_key=api_key_google)
|
70 |
|
71 |
# Mount Google Drive
|
|
|
52 |
# auth.authenticate_user()
|
53 |
|
54 |
import os
|
55 |
+
|
56 |
+
GOOGLE_APPLICATION_CREDENTIALS = os.environ["GOOGLE_APPLICATION_CREDENTIALS"]
|
57 |
|
58 |
# !pip install python-docx
|
59 |
|
|
|
66 |
import google.generativeai as genai
|
67 |
from datetime import datetime
|
68 |
|
69 |
+
api_key_google = os.environ.get(GOOGLE_GEMINI_KEY)
|
70 |
genai.configure(api_key=api_key_google)
|
71 |
|
72 |
# Mount Google Drive
|