Spaces:
Runtime error
Runtime error
import streamlit as st | |
from transformers import pipeline | |
st.header('Sentiment Analysis') | |
model = pipeline('sentiment-analysis') | |
inp = st.text_input('Enter Text') | |
if inp: | |
st.write(model(inp)) |