Spaces:
Runtime error
Runtime error
robertselvam
commited on
Commit
•
c9d550d
1
Parent(s):
a4fb10f
Update app.py
Browse files
app.py
CHANGED
@@ -113,17 +113,23 @@ class ResumeAnalyser:
|
|
113 |
gr.HTML("""<center class="darkblue" style='background-color:rgb(0,1,36); text-align:center;padding:25px;'><center><h1 class ="center">
|
114 |
<img src="file=logo.png" height="110px" width="280px"></h1></center>
|
115 |
<br><h1 style="color:#fff">Virtual Assistant Chatbot</h1></center>""")
|
116 |
-
|
117 |
with gr.Column(elem_id="col-container"):
|
118 |
-
|
119 |
-
|
120 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
jobDescription = gr.File(label="Job Description")
|
122 |
with gr.Column(scale=0.45, min_width=150):
|
123 |
resume = gr.File(label="Resume")
|
124 |
with gr.Column(scale=0.10, min_width=150):
|
125 |
analyse = gr.Button("Analyse")
|
126 |
-
|
127 |
with gr.Column(scale=1.0, min_width=150):
|
128 |
perncentage = gr.Textbox(label="Matching Percentage",lines=8)
|
129 |
with gr.Column(scale=1.0, min_width=150):
|
@@ -131,13 +137,12 @@ class ResumeAnalyser:
|
|
131 |
with gr.Column(scale=1.0, min_width=150):
|
132 |
skills = gr.Textbox(label="Skills To Improve",lines=8)
|
133 |
with gr.Column(scale=1.0, min_width=150):
|
134 |
-
keywords = gr.Textbox(label="Keywords
|
135 |
-
|
136 |
with gr.Column(scale=1.0, min_width=150):
|
137 |
pychart = gr.Plot(label="Matching Percentage Chart")
|
138 |
-
|
139 |
-
|
140 |
-
app.launch()
|
141 |
|
|
|
142 |
resume=ResumeAnalyser()
|
143 |
resume.gradio_interface()
|
|
|
113 |
gr.HTML("""<center class="darkblue" style='background-color:rgb(0,1,36); text-align:center;padding:25px;'><center><h1 class ="center">
|
114 |
<img src="file=logo.png" height="110px" width="280px"></h1></center>
|
115 |
<br><h1 style="color:#fff">Virtual Assistant Chatbot</h1></center>""")
|
116 |
+
with gr.Row():
|
117 |
with gr.Column(elem_id="col-container"):
|
118 |
+
gr.HTML(
|
119 |
+
"""<br style="color:white;">"""
|
120 |
+
)
|
121 |
+
gr.HTML(
|
122 |
+
"""<h2 style="text-align:center; color:"white">WorkLLama Resume Matcher</h2> """
|
123 |
+
)
|
124 |
+
gr.HTML("<br>")
|
125 |
+
with gr.Row():
|
126 |
+
with gr.Column(scale=0.45, min_width=150, ):
|
127 |
jobDescription = gr.File(label="Job Description")
|
128 |
with gr.Column(scale=0.45, min_width=150):
|
129 |
resume = gr.File(label="Resume")
|
130 |
with gr.Column(scale=0.10, min_width=150):
|
131 |
analyse = gr.Button("Analyse")
|
132 |
+
with gr.Row():
|
133 |
with gr.Column(scale=1.0, min_width=150):
|
134 |
perncentage = gr.Textbox(label="Matching Percentage",lines=8)
|
135 |
with gr.Column(scale=1.0, min_width=150):
|
|
|
137 |
with gr.Column(scale=1.0, min_width=150):
|
138 |
skills = gr.Textbox(label="Skills To Improve",lines=8)
|
139 |
with gr.Column(scale=1.0, min_width=150):
|
140 |
+
keywords = gr.Textbox(label="Matched Keywords",lines=8)
|
141 |
+
with gr.Row():
|
142 |
with gr.Column(scale=1.0, min_width=150):
|
143 |
pychart = gr.Plot(label="Matching Percentage Chart")
|
144 |
+
analyse.click(self.matching_percentage, [jobDescription, resume], [perncentage,reason,skills,keywords,pychart])
|
|
|
|
|
145 |
|
146 |
+
app.launch()
|
147 |
resume=ResumeAnalyser()
|
148 |
resume.gradio_interface()
|