import streamlit as st # from transformers import pipeline # pipe = pipeline("text-classification", model="Beehzod/smart_sentiment_analysis") # text = st.text_area('enter text: ') # if text: # out = pipe(text) # st.json(out) from transformers import pipeline sentiment_pipeline = pipeline("sentiment-analysis", model="Beehzod/smart_sentiment_analysis") text = st.text_area('enter text: ') results = sentiment_pipeline(text) for result in results: #print(f"Label: {result['label']}, Score: {result['score']:.4f}") st.json(result)