inditechie's picture
Create new file
da316f9
raw
history blame
173 Bytes
import streamlit as st
from transformers import pipeline
pipe = pipeline('summarization')
text = st.tex.area('enter some text:')
if text:
out = pipe(text)
st.json(out)