Spaces:
Sleeping
Sleeping
File size: 259 Bytes
3a21579 |
1 2 3 4 5 6 7 8 9 |
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)) |