Spaces:
Runtime error
Runtime error
itsmariamaraki
commited on
Commit
β’
c29fadb
1
Parent(s):
757243c
Update app.py
Browse files
app.py
CHANGED
@@ -61,15 +61,17 @@ def summarization_n_audiospeech(pdf_file):
|
|
61 |
|
62 |
iface = gr.Interface(
|
63 |
fn = summarization_n_audiospeech,
|
64 |
-
inputs = gr.File(label='upload PDF', type='binary'), #if i didn't set a type, the gradio output was an error -
|
65 |
outputs = [
|
66 |
gr.Textbox(label='Summarization of the Abstract:'),
|
67 |
gr.Audio(label="Audio Speech of the Abstract's Summary:")
|
68 |
],
|
69 |
title = "PDF's Abstract Summarization & Audio Speech Processor",
|
70 |
description = "App that generates a one-line summary of the abstract & a speech audio of this summarization -- requirements: app only accepts PDFs which include an ABSTRACT section",
|
71 |
-
|
72 |
-
|
|
|
|
|
73 |
)
|
74 |
|
75 |
iface.launch()
|
|
|
61 |
|
62 |
iface = gr.Interface(
|
63 |
fn = summarization_n_audiospeech,
|
64 |
+
inputs = gr.File(label='upload PDF', type='binary'), #if i didn't set a type, the gradio output was an error - searched it online for the solution
|
65 |
outputs = [
|
66 |
gr.Textbox(label='Summarization of the Abstract:'),
|
67 |
gr.Audio(label="Audio Speech of the Abstract's Summary:")
|
68 |
],
|
69 |
title = "PDF's Abstract Summarization & Audio Speech Processor",
|
70 |
description = "App that generates a one-line summary of the abstract & a speech audio of this summarization -- requirements: app only accepts PDFs which include an ABSTRACT section",
|
71 |
+
examples = [os.path.join(os.path.dirname(__file__), 'Hidden_Technical_Debt.pdf'),
|
72 |
+
os.path.join(os.path.dirname(__file__), 'Semiconductors.pdf'),
|
73 |
+
os.path.join(os.path.dirname(__file__), 'Efficient_Estimation_of_Word_Representations.pdf')
|
74 |
+
]
|
75 |
)
|
76 |
|
77 |
iface.launch()
|