Spaces:
Sleeping
Sleeping
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) |