Spaces:
Runtime error
Runtime error
Commit
·
453745b
1
Parent(s):
f9cc722
modified app
Browse files
app.py
CHANGED
@@ -1,4 +1,16 @@
|
|
|
|
1 |
import streamlit as st
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
-
x = st.slider('Select a value')
|
4 |
-
st.write(x, 'squared is', x * x)
|
|
|
1 |
+
import spacy
|
2 |
import streamlit as st
|
3 |
+
import spacy_streamlit
|
4 |
+
from config import COLORS_NER
|
5 |
+
|
6 |
+
nlp = spacy.load("ner_model")
|
7 |
+
|
8 |
+
st.title("SpaCy NER Model")
|
9 |
+
st.header("Entidades en el texto de un curriculum-cv")
|
10 |
+
|
11 |
+
cv_text=st.text_input("Ingrese texto de cv aquí","Ivan Ducales, hablo ingles B2 y tengo conocimientos en Java y Python, web development, postgres. he trabajado como web developer y back-end developer")
|
12 |
+
|
13 |
+
if cv_text is not None:
|
14 |
+
doc= nlp(cv_text)
|
15 |
+
spacy_streamlit.visualize_ner(doc,labels=nlp.get_pipe('ner').labels,colors = COLORS_NER)
|
16 |
|
|
|
|