Spaces:
Runtime error
Runtime error
Commit
•
5192410
1
Parent(s):
53eca38
describe
Browse files
app.py
CHANGED
@@ -173,10 +173,17 @@ def process_pdfs(
|
|
173 |
with gr.Blocks() as demo:
|
174 |
gr.HTML(
|
175 |
"""<h1 style='text-align: center;'> PDFs to Page Images Converter</h1>
|
176 |
-
<center><i> 📁 Convert PDFs to an image dataset 📁 </i></center>"""
|
177 |
)
|
178 |
gr.Markdown(
|
179 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
)
|
181 |
|
182 |
with gr.Row():
|
|
|
173 |
with gr.Blocks() as demo:
|
174 |
gr.HTML(
|
175 |
"""<h1 style='text-align: center;'> PDFs to Page Images Converter</h1>
|
176 |
+
<center><i> 📁 Convert PDFs to an image dataset, splitting pages into individual images 📁 </i></center>"""
|
177 |
)
|
178 |
gr.Markdown(
|
179 |
+
"""
|
180 |
+
This app allows you to:
|
181 |
+
1. Upload one or more PDF files
|
182 |
+
2. Convert each page of the PDFs into separate image files
|
183 |
+
3. (Optionally) sample a specific number of pages from each PDF
|
184 |
+
4. (Optionally) Create a downloadable ZIP file of the converted images
|
185 |
+
5. (Optionally) Upload the images to a Hugging Face dataset repository
|
186 |
+
"""
|
187 |
)
|
188 |
|
189 |
with gr.Row():
|