Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
-
st.markdown('###
|
4 |
|
5 |
st.markdown("<img src='https://sun9-29.userapi.com/impg/XsnLY87wXQfninjPBb9NMaKpmRJfBcvSugQwXw/67T6-XmLNRc.jpg?size=900x600&quality=96&sign=7f8fd7d50dfd16ab81dba4db2a9d313b&c_uniq_tag=Tow2HrDf6VsRmeScG7n6RVm65qghWaWRfdrhDlTE28o&type=album'>", unsafe_allow_html=True)
|
6 |
|
7 |
from transformers import pipeline
|
8 |
|
9 |
-
|
10 |
|
11 |
-
text = st.text_area("
|
12 |
|
13 |
-
st.markdown(f'{
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
+
st.markdown('### Ну привет!')
|
4 |
|
5 |
st.markdown("<img src='https://sun9-29.userapi.com/impg/XsnLY87wXQfninjPBb9NMaKpmRJfBcvSugQwXw/67T6-XmLNRc.jpg?size=900x600&quality=96&sign=7f8fd7d50dfd16ab81dba4db2a9d313b&c_uniq_tag=Tow2HrDf6VsRmeScG7n6RVm65qghWaWRfdrhDlTE28o&type=album'>", unsafe_allow_html=True)
|
6 |
|
7 |
from transformers import pipeline
|
8 |
|
9 |
+
classifier = pipeline("text-classification", "Skoltech/russian-sensitive-topics")
|
10 |
|
11 |
+
text = st.text_area("Напиши тут что-то")
|
12 |
|
13 |
+
st.markdown(f'{classifier(text)}')
|