Spaces:
Running
on
L4
Running
on
L4
Update app.py
Browse files
app.py
CHANGED
@@ -185,6 +185,13 @@ if __name__ == "__main__":
|
|
185 |
clear_bu = gr.ClearButton([pdf_show], value="Clear")
|
186 |
# pdf_show = gr.HTML(label="PDF preview")
|
187 |
pdf_show = PDF(label="Please upload pdf", interactive=True, height=800)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
|
189 |
with gr.Column(variant='panel', scale=5):
|
190 |
output_file = gr.File(label="convert result", interactive=False)
|
|
|
185 |
clear_bu = gr.ClearButton([pdf_show], value="Clear")
|
186 |
# pdf_show = gr.HTML(label="PDF preview")
|
187 |
pdf_show = PDF(label="Please upload pdf", interactive=True, height=800)
|
188 |
+
with gr.Accordion("Examples:"):
|
189 |
+
example_root = os.path.join(os.path.dirname(__file__), "examples")
|
190 |
+
gr.Examples(
|
191 |
+
examples=[os.path.join(example_root, _) for _ in os.listdir(example_root) if
|
192 |
+
_.endswith("pdf")],
|
193 |
+
inputs=pdf_show,
|
194 |
+
)
|
195 |
|
196 |
with gr.Column(variant='panel', scale=5):
|
197 |
output_file = gr.File(label="convert result", interactive=False)
|