alex77rus's picture
Update app.py
3de8292 verified
raw
history blame
267 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)