Xuratron commited on
Commit
47bffbc
·
1 Parent(s): 71c8ee2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -73,10 +73,10 @@ def process_pdf(uploaded_file, hf_model_name):
73
  iface = gr.Interface(
74
  fn=process_pdf,
75
  inputs=[
76
- gr.inputs.File(label="Upload PDF", type="pdf"),
77
- gr.inputs.Textbox(label="Hugging Face Model Name for Summarization")
78
  ],
79
- outputs=gr.outputs.Audio(label="Audio Summary"),
80
  title="PDF Abstract to Speech",
81
  description="Extracts and summarizes the abstract from a PDF file and converts it to speech."
82
  )
 
73
  iface = gr.Interface(
74
  fn=process_pdf,
75
  inputs=[
76
+ gr.File(label="Upload PDF", type="pdf"),
77
+ gr.Textbox(label="Hugging Face Model Name for Summarization")
78
  ],
79
+ outputs=gr.Audio(label="Audio Summary"),
80
  title="PDF Abstract to Speech",
81
  description="Extracts and summarizes the abstract from a PDF file and converts it to speech."
82
  )