Spaces:
Running
on
Zero
Running
on
Zero
Liam Dyer
commited on
Commit
•
4199c92
1
Parent(s):
c1d7645
batch multiplier
Browse files
app.py
CHANGED
@@ -55,7 +55,9 @@ model_list = load_all_models()
|
|
55 |
def convert(pdf_file, extract_images):
|
56 |
global model_list
|
57 |
|
58 |
-
full_text, images, out_meta = convert_single_pdf(
|
|
|
|
|
59 |
image_data = {}
|
60 |
if extract_images:
|
61 |
for filename, image in images.items():
|
|
|
55 |
def convert(pdf_file, extract_images):
|
56 |
global model_list
|
57 |
|
58 |
+
full_text, images, out_meta = convert_single_pdf(
|
59 |
+
pdf_file, model_list, batch_multiplier=16
|
60 |
+
)
|
61 |
image_data = {}
|
62 |
if extract_images:
|
63 |
for filename, image in images.items():
|