Arafath10 commited on
Commit
e34e74c
·
verified ·
1 Parent(s): 8d54737

Update main.py

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