Spaces:
Runtime error
Runtime error
Add application file
Browse files
app.py
CHANGED
@@ -16,11 +16,13 @@ import tempfile
|
|
16 |
import gradio as gr
|
17 |
from IPython.display import display, Markdown
|
18 |
|
19 |
-
|
|
|
|
|
20 |
This app enables users to upload academic articles in PDF format, specifically focusing on abstracts.
|
21 |
It efficiently summarizes the abstract and provides an audio playback of the summarized content.
|
22 |
Below are some example PDFs for you to experiment with. Feel free to explore the functionality of SpeechAbstractor!
|
23 |
-
(Please note: it works only with articles with an Abstract)."""
|
24 |
|
25 |
examples = [
|
26 |
["Article_7.pdf"],["Article_11.pdf"]
|
@@ -157,6 +159,7 @@ iface = gr.Interface(
|
|
157 |
fn=main_function,
|
158 |
inputs=gr.File(type="filepath"),
|
159 |
outputs=[gr.Textbox(label="Summary Text"), gr.Audio(label="Summary Audio", type="filepath")],
|
|
|
160 |
description=description,
|
161 |
examples=examples
|
162 |
)
|
|
|
16 |
import gradio as gr
|
17 |
from IPython.display import display, Markdown
|
18 |
|
19 |
+
title="SpeechAbstractor"
|
20 |
+
|
21 |
+
description = """
|
22 |
This app enables users to upload academic articles in PDF format, specifically focusing on abstracts.
|
23 |
It efficiently summarizes the abstract and provides an audio playback of the summarized content.
|
24 |
Below are some example PDFs for you to experiment with. Feel free to explore the functionality of SpeechAbstractor!
|
25 |
+
(Please note: it works only with articles with an Abstract)."""
|
26 |
|
27 |
examples = [
|
28 |
["Article_7.pdf"],["Article_11.pdf"]
|
|
|
159 |
fn=main_function,
|
160 |
inputs=gr.File(type="filepath"),
|
161 |
outputs=[gr.Textbox(label="Summary Text"), gr.Audio(label="Summary Audio", type="filepath")],
|
162 |
+
title=title,
|
163 |
description=description,
|
164 |
examples=examples
|
165 |
)
|