import streamlit as st | |
from transformers import pipeline | |
st.title("Определить, положительный или отрицательный текст!") | |
pipe = pipeline('sentiment-analysis') | |
text = st.text_area('введите любой текст') | |
if text: | |
out = pipe(text) | |
st.json(out) |
import streamlit as st | |
from transformers import pipeline | |
st.title("Определить, положительный или отрицательный текст!") | |
pipe = pipeline('sentiment-analysis') | |
text = st.text_area('введите любой текст') | |
if text: | |
out = pipe(text) | |
st.json(out) |