Bootcamp_Asg / test.py
Suhaib-27's picture
Create test.py
0792338 verified
raw
history blame
196 Bytes
import streamlit as st
from transformers import pipeline
classifier = pipeline("sentiment-analysis")
text = st.text_enter("Enter your text")
if text :
out = classifier(text)
st.json(out)