Spaces:
Build error
Build error
Ahsen Khaliq
commited on
Commit
·
5a176c8
1
Parent(s):
7c4973c
Update app.py
Browse files
app.py
CHANGED
@@ -8,15 +8,18 @@ def inference(text):
|
|
8 |
model.summarize(documents)
|
9 |
return model.summarize(documents)[0]
|
10 |
|
11 |
-
title = "
|
12 |
-
description = "demo for
|
13 |
-
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/
|
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)
|