shimer56 commited on
Commit
86ac03f
1 Parent(s): 04e96c0

Upload folder using huggingface_hub

Browse files
ocr_notebooks/OCR_Benchmarking.ipynb CHANGED
The diff for this file is too large to render. See raw diff
 
ocr_notebooks/image_extraction.ipynb CHANGED
The diff for this file is too large to render. See raw diff
 
ocr_notebooks/table_extraction.ipynb CHANGED
The diff for this file is too large to render. See raw diff
 
test_extraction/sample_11.py CHANGED
@@ -12,8 +12,11 @@ import requests
12
  import tempfile
13
  import ast
14
 
15
- genai.configure(api_key="AIzaSyBwk94xRhPOIkvO0E3pYhXQ7Rrk5my5IyY")
16
- openai.api_key = "sk-proj-YOl2xepEsNppWm3xLshlT3BlbkFJL04qQgahGxFcFGEClnQK"
 
 
 
17
 
18
  import gradio as gr
19
  import fitz # PyMuPDF
 
12
  import tempfile
13
  import ast
14
 
15
+ gemini_api_key = os.getenv("GEMINI_API_KEY")
16
+ genai.configure(api_key=gemini_api_key)
17
+
18
+ openai_api_key = os.getenv("OPENAI_API_KEY")
19
+ openai.api_key = openai_api_key
20
 
21
  import gradio as gr
22
  import fitz # PyMuPDF