Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ IMAGE_ZOOM_FACTOR = 2 # 2 = 144 DPI
|
|
16 |
SPACER_HEIGHT = 30 # Vertical space between pages
|
17 |
BACKGROUND_COLOR = (255, 255, 255) # White
|
18 |
|
19 |
-
def pdf_to_png_streaming(pdf_file, pdf_url, progress=gr.Progress(
|
20 |
"""
|
21 |
Converts a PDF (from file or URL) to a single PNG, streaming the output
|
22 |
image as each page is processed.
|
|
|
16 |
SPACER_HEIGHT = 30 # Vertical space between pages
|
17 |
BACKGROUND_COLOR = (255, 255, 255) # White
|
18 |
|
19 |
+
def pdf_to_png_streaming(pdf_file, pdf_url, progress=gr.Progress(track_tqdm=True)):
|
20 |
"""
|
21 |
Converts a PDF (from file or URL) to a single PNG, streaming the output
|
22 |
image as each page is processed.
|