Shaffique Aljoofri commited on
Commit
087f278
·
1 Parent(s): ba5c8ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -33,5 +33,12 @@ def summarize(input):
33
 
34
  gr.close_all()
35
 
36
- demo = gr.Interface(fn=summarize, inputs="text", outputs="text")
 
 
 
 
 
 
 
37
  demo.launch()
 
33
 
34
  gr.close_all()
35
 
36
+ demo = gr.Interface(fn = summarize,
37
+ inputs = [gr.Textbox(label = "Text to summarise", lines = 3)],
38
+ outputs = [gr.Textbox(label = "Summary", lines = 3)],
39
+ title = "Text Summarisation Demo",
40
+ description = "Summarise text with `distilbart-cnn-12-6` model under the hood!",
41
+ allow_flagging = "never",
42
+ )
43
+
44
  demo.launch()