suvrobaner's picture
create my app file
66b2676
raw
history blame contribute delete
217 Bytes
import streamlit as st
from transformers import pipeline
summarizer = pipeline("summarization")
text = st.text_area('Enter some text : ')
if text:
out = summarizer(text, min_length=5, max_length=20)
st.json(out)