Text_Summarizer / app.py
SIVAPRASATH's picture
Update app.py
7d6c1f7
raw
history blame
350 Bytes
from transformers import pipeline
import gradio as gr
model = pipeline("summarization")
def get_input(text):
summary = model(text,max_length =120, min_length = 40,do_sample=False)
return summary
iface = gr.Interface(fn=get_input,inputs="text",outputs="text",title = "Text Summarizer",description="Enter your text to get summary")
iface.launch()