Commit
•
eb14d1e
1
Parent(s):
e1e9e7d
Update app.py
Browse files
app.py
CHANGED
@@ -11,4 +11,4 @@ def summarize(input_text):
|
|
11 |
summarizer = pipeline("summarization", model=model_name, tokenizer=pegasus_tokenizer,min_length=int(nwords/10)+20, max_length=int(nwords/5+20), framework="pt")
|
12 |
summary=summarizer(input_text)[0]['summary_text']
|
13 |
return(summary)
|
14 |
-
gr.Interface(fn=summarize,inputs=gr.inputs.Textbox(placeholder="Paste the text to be summarized here..."),outputs="textbox").launch()
|
|
|
11 |
summarizer = pipeline("summarization", model=model_name, tokenizer=pegasus_tokenizer,min_length=int(nwords/10)+20, max_length=int(nwords/5+20), framework="pt")
|
12 |
summary=summarizer(input_text)[0]['summary_text']
|
13 |
return(summary)
|
14 |
+
gr.Interface(fn=summarize,inputs=gr.inputs.Textbox(placeholder="Paste the text to be summarized here..."),outputs="textbox").launch()
|