jethrovic's picture
Update app.py
0565b17
raw
history blame contribute delete
301 Bytes
import streamlit as st
from transformers import pipeline
summarizer1 = pipeline("summarization", model = 't5-base')
user_input = st.text_area("Enter text to summarize here")
if st.button("Summarize"):
summary_text = summarizer1(user_input, min_length=20, max_length=25)
st.write(summary_text)