kahennefer commited on
Commit
4afe3aa
·
1 Parent(s): 0f684ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -91,7 +91,6 @@ def generate_audio(pdf_file_path):
91
  # Define app name, app description, and examples
92
  app_name = "PDF to Audio Converter"
93
  app_description = "Convert text from a PDF file to audio. Upload a PDF file. We accept only PDF files"
94
- examples = [["sample.pdf"]] # Provide example file names if needed
95
 
96
  # Create the Gradio app
97
  input_component = gr.File(file_types=["pdf"])
@@ -102,7 +101,6 @@ demo = gr.Interface(
102
  inputs=input_component,
103
  outputs=output_component,
104
  title=app_name,
105
- description=app_description,
106
- examples=examples
107
  )
108
  demo.launch()
 
91
  # Define app name, app description, and examples
92
  app_name = "PDF to Audio Converter"
93
  app_description = "Convert text from a PDF file to audio. Upload a PDF file. We accept only PDF files"
 
94
 
95
  # Create the Gradio app
96
  input_component = gr.File(file_types=["pdf"])
 
101
  inputs=input_component,
102
  outputs=output_component,
103
  title=app_name,
104
+ description=app_description
 
105
  )
106
  demo.launch()