Update app.py
Browse files
app.py
CHANGED
@@ -25,20 +25,16 @@ def pdf_to_text(file_obj):
|
|
25 |
myobj.save("test.wav")
|
26 |
return 'test.wav'
|
27 |
|
28 |
-
examples = [
|
29 |
-
[os.path.abspath("Article 11 Hidden Technical Debt in Machine Learning Systems.pdf")],
|
30 |
-
]
|
31 |
|
32 |
iface = gr.Interface(fn = pdf_to_text,
|
33 |
inputs = 'file',
|
34 |
outputs = 'audio',
|
35 |
title = 'PDF to Audio Application',
|
36 |
-
description = 'A simple application to convert PDF files in audio speech. Upload your own file,
|
37 |
article =
|
38 |
'''<div>
|
39 |
<p style="text-align: center"> All you need to do is to upload the pdf file and hit submit, then wait for compiling. After that click on Play/Pause for listing to the audio. The audio is saved in a wav format.</p>
|
40 |
</div>''',
|
41 |
-
examples=examples
|
42 |
)
|
43 |
|
44 |
iface.launch()
|
|
|
25 |
myobj.save("test.wav")
|
26 |
return 'test.wav'
|
27 |
|
|
|
|
|
|
|
28 |
|
29 |
iface = gr.Interface(fn = pdf_to_text,
|
30 |
inputs = 'file',
|
31 |
outputs = 'audio',
|
32 |
title = 'PDF to Audio Application',
|
33 |
+
description = 'A simple application to convert PDF files in audio speech. Upload your own file, it must contain abstract.',
|
34 |
article =
|
35 |
'''<div>
|
36 |
<p style="text-align: center"> All you need to do is to upload the pdf file and hit submit, then wait for compiling. After that click on Play/Pause for listing to the audio. The audio is saved in a wav format.</p>
|
37 |
</div>''',
|
|
|
38 |
)
|
39 |
|
40 |
iface.launch()
|