Spaces:
Sleeping
Sleeping
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 |
-
|
16 |
-
|
|
|
|
|
|
|
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
|