spaces-trial / app.py
ranga-godhandaraman's picture
Create app.py
96e4d99 verified
raw
history blame
218 Bytes
import streamlit as st
from transformers import pipeline
pipe = pipeline('sentiment-analysis')
text= st.text_area('enter some text')
if st.button('Submit'):
if text:
out = pipe(text)
st.write(out)