kahennefer commited on
Commit
7a8cb88
1 Parent(s): 8a912be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -94,11 +94,12 @@ app_description = "Convert text from a PDF file to audio. Upload a PDF file. We
94
  examples = [["sample.pdf"]] # Provide example file names if needed
95
 
96
  # Create the Gradio app
 
97
  output_component = gr.outputs.Audio()
98
 
99
  demo = gr.Interface(
100
  fn=generate_audio,
101
- inputs="pdf"
102
  outputs=output_component,
103
  title=app_name,
104
  description=app_description,
 
94
  examples = [["sample.pdf"]] # Provide example file names if needed
95
 
96
  # Create the Gradio app
97
+ input_component = gr.File(file_types=["pdf"])
98
  output_component = gr.outputs.Audio()
99
 
100
  demo = gr.Interface(
101
  fn=generate_audio,
102
+ inputs=input_component,
103
  outputs=output_component,
104
  title=app_name,
105
  description=app_description,