AbhijitClemson commited on
Commit
b088b83
Β·
verified Β·
1 Parent(s): d6096c9

Update page_files/categorized/Backend/PDF_DataExtraction.py

Browse files
page_files/categorized/Backend/PDF_DataExtraction.py CHANGED
@@ -95,7 +95,7 @@ if OCR_AVAILABLE:
95
 
96
  # ── API Keys ──────────────────────────────────────────────────────────────────
97
  GEMINI_API_KEY = os.getenv("GEMINI_API_KEY", "")
98
- OPENAI_API_KEY = os.getenv("OPENAI_API_KEY", "")
99
 
100
  # ── Gemini model selection (no 1.5 models) ────────────────────────────────────
101
  _cached_gemini_model: Optional[str] = None
 
95
 
96
  # ── API Keys ──────────────────────────────────────────────────────────────────
97
  GEMINI_API_KEY = os.getenv("GEMINI_API_KEY", "")
98
+ OPENAI_API_KEY = os.getenv("OPENAI_API_KEY", "").strip()
99
 
100
  # ── Gemini model selection (no 1.5 models) ────────────────────────────────────
101
  _cached_gemini_model: Optional[str] = None