Spaces:
Runtime error
Runtime error
import streamlit as st | |
from transformers import pipeline | |
model_identifier = "dnzblgn/BART_Sentiment_Classification" | |
pipe = pipeline("sentiment-analysis", model=model_identifier) | |
text = st.text_area("Enter text: ") | |
if text: | |
out = pipe(text) | |
st.json(out) | |