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