Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import google.generativeai as genai
|
|
5 |
import fitz # PyMuPDF to read PDF
|
6 |
|
7 |
# Load Gemini API key from Hugging Face secret
|
8 |
-
genai.configure(api_key=os.getenv("
|
9 |
for page in doc:
|
10 |
text += page.get_text()
|
11 |
return text.strip()
|
|
|
5 |
import fitz # PyMuPDF to read PDF
|
6 |
|
7 |
# Load Gemini API key from Hugging Face secret
|
8 |
+
genai.configure(api_key=os.getenv("GEMINI_API_KEY"))
|
9 |
for page in doc:
|
10 |
text += page.get_text()
|
11 |
return text.strip()
|