sanjaybhargavneela1929 commited on
Commit
2086a2f
·
verified ·
1 Parent(s): 4cef131

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -0
app.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from transformers import pipeline
2
+ from gradio import Interface
3
+
4
+ # Load a simple text classification model
5
+ classifier = pipeline("text-classification", model="nlptown/bert-base-multilingual-uncased-sentiment")
6
+
7
+ def match_profile(resume_text, linkedin_text):
8
+ input_text = resume_text + " " + linkedin_text
9
+ result = classifier(input_text)
10
+ score = result[0]['score'] * 100
11
+ return f"Suitability Score: {score:.2f}"
12
+
13
+ iface = Interface(fn=match_profile,
14
+ inputs=["text", "text"],
15
+ outputs="text",
16
+ title="LIC Profile Matcher")
17
+
18
+ iface.launch()