johnnyfivefingers commited on
Commit
9a8d316
·
1 Parent(s): a466a28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ summarizer = pipeline("summarization", model=model_id)
10
 
11
  def summarize(text):
12
  #return "Summary: " + text
13
- out = summarizer(text, max_length=70, min_length = 35)
14
  return "Summary: " + str(out)
15
 
16
  iface = gr.Interface(fn=summarize, inputs="text", outputs="text")
 
10
 
11
  def summarize(text):
12
  #return "Summary: " + text
13
+ out = summarizer(text, max_length=150, min_length = 20)
14
  return "Summary: " + str(out)
15
 
16
  iface = gr.Interface(fn=summarize, inputs="text", outputs="text")