Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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
|