yuvraj-yadav commited on
Commit
dabc3da
·
verified ·
1 Parent(s): ae176d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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("API_Key
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()