Update main.py
Browse files
main.py
CHANGED
|
@@ -51,7 +51,7 @@ app.add_middleware(
|
|
| 51 |
|
| 52 |
def vision(file_content):
|
| 53 |
# Open the PDF
|
| 54 |
-
pdf_document = fitz.open("pdf",
|
| 55 |
gemini_input = ["extract the whole text"]
|
| 56 |
# Iterate through the pages
|
| 57 |
for page_num in range(len(pdf_document)):
|
|
|
|
| 51 |
|
| 52 |
def vision(file_content):
|
| 53 |
# Open the PDF
|
| 54 |
+
pdf_document = fitz.open("pdf",file_content)
|
| 55 |
gemini_input = ["extract the whole text"]
|
| 56 |
# Iterate through the pages
|
| 57 |
for page_num in range(len(pdf_document)):
|