TovaHasi commited on
Commit
51427da
·
1 Parent(s): f82683e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,13 +1,13 @@
1
  import streamlit as st
2
 
3
- st.markdown('### Hello, world!')
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
- pipe = pipeline("ner", "Davlan/distilbert-base-multilingual-cased-ner-hrl")
10
 
11
- text = st.text_area("Text here")
12
 
13
- st.markdown(f'{pipe(text)}')
 
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)}')