Spaces:
Runtime error
Runtime error
Commit
•
847e893
1
Parent(s):
fb474f8
Update app.py
Browse files
app.py
CHANGED
@@ -26,9 +26,10 @@ def pdf_to_imgs(pdf):
|
|
26 |
|
27 |
title = "First page of a PDF >> image"
|
28 |
description = "Drop a PDF (WARNING: only the first page will be converted into an image)."
|
29 |
-
examples =[["example.pdf"]]
|
30 |
css = ".output-image, .input-image, .image-preview {height: 600px !important}"
|
31 |
allow_flagging = "never"
|
|
|
32 |
|
33 |
iface = gr.Interface(fn=pdf_to_imgs,
|
34 |
#inputs=[gr.File(label="PDF"), gr.Checkbox(label="Only first page?", value=True)],
|
@@ -42,5 +43,6 @@ iface = gr.Interface(fn=pdf_to_imgs,
|
|
42 |
#article=article,
|
43 |
css=css,
|
44 |
allow_flagging=allow_flagging,
|
|
|
45 |
)
|
46 |
iface.launch(debug=False, enable_queue=True)
|
|
|
26 |
|
27 |
title = "First page of a PDF >> image"
|
28 |
description = "Drop a PDF (WARNING: only the first page will be converted into an image)."
|
29 |
+
examples = [["example.pdf"]]
|
30 |
css = ".output-image, .input-image, .image-preview {height: 600px !important}"
|
31 |
allow_flagging = "never"
|
32 |
+
live = True
|
33 |
|
34 |
iface = gr.Interface(fn=pdf_to_imgs,
|
35 |
#inputs=[gr.File(label="PDF"), gr.Checkbox(label="Only first page?", value=True)],
|
|
|
43 |
#article=article,
|
44 |
css=css,
|
45 |
allow_flagging=allow_flagging,
|
46 |
+
live=live
|
47 |
)
|
48 |
iface.launch(debug=False, enable_queue=True)
|