Update app.py
Browse files
app.py
CHANGED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import spacy
|
3 |
+
|
4 |
+
recommender = spacy.load('./model-best1')
|
5 |
+
|
6 |
+
def recommend(resume):
|
7 |
+
detail = ''
|
8 |
+
doc = nlp(txt)
|
9 |
+
for ent in doc.ents:
|
10 |
+
detail = detail+' '+ent.label_.upper()+ " = "+ ent.text
|
11 |
+
return detail
|
12 |
+
|
13 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
14 |
+
iface.launch()
|