skhage commited on
Commit
9b8f129
1 Parent(s): fb4f847

testing summary typing

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -8,9 +8,10 @@ def get_entities(article):
8
  return ner(article)
9
 
10
  def make_summary(article, max_length=130, min_length=30, do_sample=False):
11
- return summarizer(article, max_length, min_length, do_sample)[0], get_entities(article)
 
12
 
13
 
14
 
15
- iface = gr.Interface(fn=make_summary, inputs="text", outputs=['text', 'text'])
16
  iface.launch()
 
8
  return ner(article)
9
 
10
  def make_summary(article, max_length=130, min_length=30, do_sample=False):
11
+ summ = summarizer(article, max_length, min_length, do_sample)[0]
12
+ return summ, type(summ), get_entities(article)
13
 
14
 
15
 
16
+ iface = gr.Interface(fn=make_summary, inputs="text", outputs=['text', 'text', 'text'])
17
  iface.launch()