Spaces:
Sleeping
Sleeping
| import streamlit as st | |
| import transformers | |
| import torch | |
| from transformers import pipeline | |
| pipe = pipeline("text-classification", model="cardiffnlp/twitter-roberta-base-sentiment-latest") | |
| text = st.text_input("Enter your quote here") | |
| if text: | |
| st.write(pipe(text)) |