Ahsen Khaliq commited on
Commit
5a176c8
·
1 Parent(s): 7c4973c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -8,15 +8,18 @@ def inference(text):
8
  model.summarize(documents)
9
  return model.summarize(documents)[0]
10
 
11
- title = "Anime2Sketch"
12
- description = "demo for Anime2Sketch. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."
13
- article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2104.05703'>Adversarial Open Domain Adaption for Sketch-to-Photo Synthesis</a> | <a href='https://github.com/Mukosame/Anime2Sketch'>Github Repo</a></p>"
14
 
15
  gr.Interface(
16
  inference,
17
- [gr.inputs.Textbox(label="Input")],
18
  gr.outputs.Textbox(label="Output"),
19
  title=title,
20
  description=description,
21
- article=article
 
 
 
22
  ).launch(debug=True)
 
8
  model.summarize(documents)
9
  return model.summarize(documents)[0]
10
 
11
+ title = "SummerTime"
12
+ description = "Gradio demo for SummerTime: An open-source text summarization toolkit for non-experts. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
13
+ article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2108.12738'>SummerTime: Text Summarization Toolkit for Non-experts</a> | <a href='https://github.com/Yale-LILY/SummerTime'>Github Repo</a></p>"
14
 
15
  gr.Interface(
16
  inference,
17
+ [gr.inputs.Textbox(label="Input", lines=20)],
18
  gr.outputs.Textbox(label="Output"),
19
  title=title,
20
  description=description,
21
+ article=article,
22
+ examples=[["""PG&E stated it scheduled the blackouts in response to forecasts for high winds amid dry conditions.
23
+ The aim is to reduce the risk of wildfires. Nearly 800 thousand customers were scheduled to be affected
24
+ by the shutoffs which were expected to last through at least midday tomorrow."""]]
25
  ).launch(debug=True)