Spaces:
Running
Running
pierreguillou
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -98,7 +98,7 @@ def save_extracted_text(blocks, page_number, output_folder):
|
|
98 |
# Gemini Functions
|
99 |
def initialize_gemini():
|
100 |
try:
|
101 |
-
genai.configure(api_key=os.
|
102 |
generation_config = {
|
103 |
"temperature": 1,
|
104 |
"top_p": 0.95,
|
|
|
98 |
# Gemini Functions
|
99 |
def initialize_gemini():
|
100 |
try:
|
101 |
+
genai.configure(api_key=os.getenv("GEMINI_API_KEY"))
|
102 |
generation_config = {
|
103 |
"temperature": 1,
|
104 |
"top_p": 0.95,
|