alex77rus's picture
Update app.py
60d66e9 verified
raw
history blame
239 Bytes
import streamlit as st
from transformers import pipeline
classifier = pipeline('text-classification', model='blanchefort/rubert-base-cased-sentiment-rusentiment')
text = st.text_area()
if text:
out = classifier(text)
st.json(out)