Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ st.markdown('This NLP project helps you extract skills from job description. You
|
|
18 |
|
19 |
@st.cache(allow_output_mutation=True)
|
20 |
def get_model():
|
21 |
-
return spacy.load("
|
22 |
|
23 |
nlp = get_model()
|
24 |
|
@@ -27,29 +27,3 @@ raw_text = st.text_area(label="Insert your job description")
|
|
27 |
#if raw_text != "":
|
28 |
docx = nlp(raw_text)
|
29 |
spacy_streamlit.visualize_ner(docx, labels = nlp.get_pipe('ner').labels)
|
30 |
-
#spacy_streamlit.visualize_ner(docx,labels=nlp.get_pipe('ner').labels)
|
31 |
-
|
32 |
-
|
33 |
-
#download the skills & job description in a csv from a df
|
34 |
-
#@st.cache
|
35 |
-
#def convert_df(df):
|
36 |
-
# IMPORTANT: Cache the conversion to prevent computation on every rerun
|
37 |
-
#return df.to_csv().encode('utf-8')
|
38 |
-
|
39 |
-
#csv = convert_df(my_large_df)
|
40 |
-
|
41 |
-
#st.download_button(
|
42 |
-
#label="Download as as CSV",
|
43 |
-
#data=csv,
|
44 |
-
#file_name='skills.csv',
|
45 |
-
#mime='text/csv',
|
46 |
-
#)
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
@st.cache # 👈 This function will be cached
|
53 |
-
def load_large_dataset():
|
54 |
-
# Do something really slow in here!
|
55 |
-
return load_dataset("glue", "sst2", split="validation")
|
|
|
18 |
|
19 |
@st.cache(allow_output_mutation=True)
|
20 |
def get_model():
|
21 |
+
return spacy.load("chali12/en_pipeline")
|
22 |
|
23 |
nlp = get_model()
|
24 |
|
|
|
27 |
#if raw_text != "":
|
28 |
docx = nlp(raw_text)
|
29 |
spacy_streamlit.visualize_ner(docx, labels = nlp.get_pipe('ner').labels)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|