Spaces:
Runtime error
Runtime error
from transformers import pipeline | |
import streamlit as st #Web App | |
#title | |
st.title("Text Sentiment Analysis") | |
sentiment_pipeline = pipeline("sentiment-analysis") | |
data = ["I love you", "I hate you"] | |
st.write(sentiment_pipeline(data)) | |