jhonparra18 commited on
Commit
453745b
·
1 Parent(s): f9cc722

modified app

Browse files
Files changed (1) hide show
  1. app.py +14 -2
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