Alioth86 commited on
Commit
47bdf28
1 Parent(s): f76c355

Add application file

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -16,11 +16,13 @@ import tempfile
16
  import gradio as gr
17
  from IPython.display import display, Markdown
18
 
19
- description = display(Markdown("""##**SpeechAbstractor**\n
 
 
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
  )