roshithindia's picture
Create app.py
3a21579
raw
history blame contribute delete
259 Bytes
from transformers import pipeline
import streamlit as st
st.header('Text Summarizer')
model = pipeline('summarization')
title = st.text_input('Enter the text to summarize')
if title:
st.write(model(title, max_length=220, min_length=30, do_sample=False))