Spaces:
Runtime error
Runtime error
| import streamlit as st | |
| from transformers import pipeline | |
| def load_model(): | |
| return pipeline("sentiment-analysis") | |
| nlp = load_model() | |
| user_text = st.text_area(label="Input your text here!") | |
| if user_text: | |
| predictions = nlp(user_text) | |
| st.write(predictions) |