File size: 267 Bytes
60d66e9
23330c4
60d66e9
 
3de8292
60d66e9
 
 
 
1
2
3
4
5
6
7
8
9
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)