Spaces:
Runtime error
Runtime error
Commit
β’
df81f7f
1
Parent(s):
1769f1b
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def abstract(pdf_file):
|
|
35 |
|
36 |
|
37 |
|
38 |
-
summarization = pipeline('summarization', model = '
|
39 |
audiospeech = pipeline('text-to-speech', model = 'suno/bark-small') #the voice is a bit distorted but gives a good output & takes less time
|
40 |
|
41 |
|
@@ -68,7 +68,10 @@ iface = gr.Interface(
|
|
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 |
iface.launch()
|
|
|
35 |
|
36 |
|
37 |
|
38 |
+
summarization = pipeline('summarization', model = 'pszemraj/long-t5-tglobal-base-16384-book-summary') #best summarization model i tested regarding this assessment
|
39 |
audiospeech = pipeline('text-to-speech', model = 'suno/bark-small') #the voice is a bit distorted but gives a good output & takes less time
|
40 |
|
41 |
|
|
|
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()
|