Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -45,13 +45,14 @@ def convert_pdf(input_file, output_format):
|
|
45 |
|
46 |
return output_file_path
|
47 |
|
48 |
-
|
49 |
-
|
|
|
50 |
label="Select Output File Format",
|
51 |
)
|
52 |
-
file_input = gr.
|
53 |
|
54 |
-
output_file = gr.
|
55 |
|
56 |
gr_interface = gr.Interface(
|
57 |
fn=convert_pdf,
|
|
|
45 |
|
46 |
return output_file_path
|
47 |
|
48 |
+
# Update inputs and outputs for Gradio v3.x
|
49 |
+
output_format_dropdown = gr.Dropdown(
|
50 |
+
choices=["Markdown (.md)", "HTML (.html)", "JSON (.json)"],
|
51 |
label="Select Output File Format",
|
52 |
)
|
53 |
+
file_input = gr.File(label="Upload PDF File")
|
54 |
|
55 |
+
output_file = gr.File(label="Download Converted File")
|
56 |
|
57 |
gr_interface = gr.Interface(
|
58 |
fn=convert_pdf,
|