SANDRAMSC commited on
Commit
2aa9224
·
verified ·
1 Parent(s): 64e08db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ def get_gemini_response(input, pdf_content, prompt):
21
  def input_pdf_setup(upload_file):
22
  if upload_file is not None:
23
  ## Convert PDF to image
24
- images = pdf2image.convert_from_bytes(upload_file.read.read())
25
  first_page = images[0]
26
 
27
  # Convert into bytes
 
21
  def input_pdf_setup(upload_file):
22
  if upload_file is not None:
23
  ## Convert PDF to image
24
+ images = pdf2image.convert_from_bytes(upload_file.read())
25
  first_page = images[0]
26
 
27
  # Convert into bytes