sblumenf commited on
Commit
0f6f41c
·
verified ·
1 Parent(s): 8b85809

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -45,13 +45,14 @@ def convert_pdf(input_file, output_format):
45
 
46
  return output_file_path
47
 
48
- output_format_dropdown = gr.inputs.Dropdown(
49
- ["Markdown (.md)", "HTML (.html)", "JSON (.json)"],
 
50
  label="Select Output File Format",
51
  )
52
- file_input = gr.inputs.File(label="Upload PDF File", type="file")
53
 
54
- output_file = gr.outputs.File(label="Download Converted File")
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,