Spaces:
Sleeping
Sleeping
import os | |
import streamlit as st | |
from transfomers import pipeline | |
inp=st.text_input("Enter the text") | |
btn=st.button("Submit") | |
pipe=pipeline(task='text_classification',model='cardiffnlp/twitter-roberta-base-sentiment-latest') | |
if(inp and btn): | |
st.write(pipe(text)) |