niknikita commited on
Commit
13c98a6
1 Parent(s): 5e6add0
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ st.markdown("### Hello, world!")
4
+ st.markdown("<img width=200px src='https://rozetked.me/images/uploads/dwoilp3BVjlE.jpg'>", unsafe_allow_html=True)
5
+
6
+ text = st.text_area("TEXT HERE")
7
+
8
+ from transformers import pipeline
9
+ pipe = pipeline("ner", "Davlan/distilbert-base-multilingual-cased-ner-hrl")
10
+ raw_predictions = pipe(text)
11
+
12
+ st.markdown(f"{raw_predictions}")