demo / app.py
varadhbhatnagar's picture
Create app.py
afbec41
raw
history blame contribute delete
171 Bytes
import streamlit as st
from transformers import pipeline
pipe = pipeline('summarization')
text = st.text_area('Enter a tweet')
if text:
out = pipe(text)
st.json(out)