Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -192,17 +192,34 @@ def analyze_resume(resume_file, job_description_file):
|
|
192 |
}
|
193 |
|
194 |
|
|
|
195 |
# --- Gradio Interface --- #
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
}
|
193 |
|
194 |
|
195 |
+
|
196 |
# --- Gradio Interface --- #
|
197 |
+
def main():
|
198 |
+
"""Runs the Gradio application for resume analysis."""
|
199 |
+
interface = gr.Interface(
|
200 |
+
fn=analyze_resume,
|
201 |
+
inputs=[
|
202 |
+
gr.File(label="Upload Resume (PDF/TXT)", type="filepath"),
|
203 |
+
gr.File(label="Upload Job Description (PDF/TXT)", type="filepath")
|
204 |
+
],
|
205 |
+
outputs=[
|
206 |
+
gr.Textbox(label="Skills Similarity"),
|
207 |
+
gr.Textbox(label="Qualifications Similarity"),
|
208 |
+
gr.Textbox(label="Experience Similarity"),
|
209 |
+
gr.Textbox(label="Communication Response"),
|
210 |
+
gr.Textbox(label="Sentiment Analysis"),
|
211 |
+
gr.Textbox(label="Resume Skills"),
|
212 |
+
gr.Textbox(label="Job Description Skills"),
|
213 |
+
gr.Textbox(label="Resume Qualifications"),
|
214 |
+
gr.Textbox(label="Job Description Qualifications"),
|
215 |
+
gr.Textbox(label="Resume Experience"),
|
216 |
+
gr.Textbox(label="Job Description Experience")
|
217 |
+
],
|
218 |
+
title="Resume and Job Description Analysis",
|
219 |
+
description="Analyze a resume against a job description to evaluate skills, qualifications, experience, and generate communication insights."
|
220 |
+
)
|
221 |
+
|
222 |
+
interface.launch()
|
223 |
+
|
224 |
+
if __name__ == "__main__":
|
225 |
+
main()
|