vanessbut commited on
Commit
ebe69e3
·
1 Parent(s): 0d7d455

Начальный коммит.

Browse files
Files changed (2) hide show
  1. app.py +12 -0
  2. requirements.txt +7 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ st.markdown("### TL;DR: give me the keywords!")
4
+ st.markdown("<img width=200px src='https://rozetked.me/images/uploads/dwoilp3BVjlE.jpg'>", unsafe_allow_html=True)
5
+
6
+ from transformers import pipeline
7
+
8
+ pipe = pipeline("ner", "Davlan/distilbert-base-multilingual-cased-ner-hrl")
9
+
10
+ text = st.text_area("TEXT HERE")
11
+
12
+ st.markdown(f"{pipe(text)}")
requirements.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ transformers
2
+ torch
3
+ sklearn
4
+ spacy
5
+ numpy
6
+ scipy
7
+ re