Spaces:
Sleeping
Sleeping
DreamStream-1
commited on
Commit
•
d30c79b
1
Parent(s):
d22fc6f
Update app.py
Browse files
app.py
CHANGED
@@ -206,35 +206,36 @@ def run_gradio_interface():
|
|
206 |
skills_output = gr.Textbox(label="Skills Overview", interactive=False, lines=10)
|
207 |
qualifications_output = gr.Textbox(label="Qualifications Overview", interactive=False, lines=10)
|
208 |
experience_output = gr.Textbox(label="Experience Overview", interactive=False, lines=10)
|
209 |
-
communication_output = gr.Textbox(label="Communication", interactive=False, lines=10)
|
210 |
|
211 |
# Create tabs for output sections
|
212 |
with gr.Tab("Analysis Summary"):
|
213 |
-
|
|
|
214 |
|
215 |
with gr.Tab("Skills Overview"):
|
216 |
-
|
|
|
217 |
|
218 |
with gr.Tab("Qualifications Overview"):
|
219 |
-
|
|
|
220 |
|
221 |
with gr.Tab("Experience Overview"):
|
222 |
-
|
223 |
-
|
224 |
-
with gr.Tab("Communication"):
|
225 |
-
communication_output.render()
|
226 |
|
227 |
analyze_button = gr.Button("Analyze")
|
228 |
|
229 |
def analyze(resume, job_desc):
|
230 |
if resume and job_desc:
|
231 |
-
summary, skills, qualifications, experience
|
232 |
-
return summary, skills, qualifications, experience
|
233 |
return "Please upload both files."
|
234 |
|
235 |
-
analyze_button.click(analyze, inputs=[resume_file, job_description_file], outputs=[summary_output, skills_output, qualifications_output, experience_output
|
236 |
|
237 |
demo.launch()
|
238 |
|
239 |
if __name__ == "__main__":
|
240 |
run_gradio_interface()
|
|
|
|
206 |
skills_output = gr.Textbox(label="Skills Overview", interactive=False, lines=10)
|
207 |
qualifications_output = gr.Textbox(label="Qualifications Overview", interactive=False, lines=10)
|
208 |
experience_output = gr.Textbox(label="Experience Overview", interactive=False, lines=10)
|
|
|
209 |
|
210 |
# Create tabs for output sections
|
211 |
with gr.Tab("Analysis Summary"):
|
212 |
+
gr.Markdown("### Summary of Analysis")
|
213 |
+
summary_output # This automatically renders the output box
|
214 |
|
215 |
with gr.Tab("Skills Overview"):
|
216 |
+
gr.Markdown("### Skills Overview")
|
217 |
+
skills_output # This automatically renders the output box
|
218 |
|
219 |
with gr.Tab("Qualifications Overview"):
|
220 |
+
gr.Markdown("### Qualifications Overview")
|
221 |
+
qualifications_output # This automatically renders the output box
|
222 |
|
223 |
with gr.Tab("Experience Overview"):
|
224 |
+
gr.Markdown("### Experience Overview")
|
225 |
+
experience_output # This automatically renders the output box
|
|
|
|
|
226 |
|
227 |
analyze_button = gr.Button("Analyze")
|
228 |
|
229 |
def analyze(resume, job_desc):
|
230 |
if resume and job_desc:
|
231 |
+
summary, skills, qualifications, experience = analyze_resume(resume, job_desc)
|
232 |
+
return summary, skills, qualifications, experience
|
233 |
return "Please upload both files."
|
234 |
|
235 |
+
analyze_button.click(analyze, inputs=[resume_file, job_description_file], outputs=[summary_output, skills_output, qualifications_output, experience_output])
|
236 |
|
237 |
demo.launch()
|
238 |
|
239 |
if __name__ == "__main__":
|
240 |
run_gradio_interface()
|
241 |
+
|