Spaces:
Runtime error
Runtime error
Add application file
Browse files
app.py
CHANGED
@@ -16,6 +16,9 @@ import os
|
|
16 |
import tempfile
|
17 |
import gradio as gr
|
18 |
|
|
|
|
|
|
|
19 |
|
20 |
#reporting the created functions for the part 1
|
21 |
def text_extraction(element):
|
@@ -144,6 +147,7 @@ iface = gr.Interface(
|
|
144 |
fn=main_function,
|
145 |
inputs=gr.File(type="filepath"),
|
146 |
outputs=[gr.Textbox(label="Summary Text"), gr.Audio(label="Summary Audio", type="filepath")]
|
|
|
147 |
)
|
148 |
|
149 |
#launching the app
|
|
|
16 |
import tempfile
|
17 |
import gradio as gr
|
18 |
|
19 |
+
description = """#**SpeechAbstractor**
|
20 |
+
This app allows you to upload an article with Abstract in .pdf and summarize the Abstract itself and speak it out loud.
|
21 |
+
Some examples are given here below. Plese, help yourself!"""
|
22 |
|
23 |
#reporting the created functions for the part 1
|
24 |
def text_extraction(element):
|
|
|
147 |
fn=main_function,
|
148 |
inputs=gr.File(type="filepath"),
|
149 |
outputs=[gr.Textbox(label="Summary Text"), gr.Audio(label="Summary Audio", type="filepath")]
|
150 |
+
description=description
|
151 |
)
|
152 |
|
153 |
#launching the app
|