SIVAPRASATH commited on
Commit
7d6c1f7
1 Parent(s): e092a05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,8 +3,8 @@ import gradio as gr
3
  model = pipeline("summarization")
4
 
5
  def get_input(text):
6
- summary = model(text,max_length =100, min_length = 25,do_sample=False)
7
  return summary
8
 
9
- iface = gr.Interface(fn=get_input,inputs="text",outputs="text",title = "Text Summarizar",description="Enter your text to get summary")
10
  iface.launch()
 
3
  model = pipeline("summarization")
4
 
5
  def get_input(text):
6
+ summary = model(text,max_length =120, min_length = 40,do_sample=False)
7
  return summary
8
 
9
+ iface = gr.Interface(fn=get_input,inputs="text",outputs="text",title = "Text Summarizer",description="Enter your text to get summary")
10
  iface.launch()