Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -47,24 +47,19 @@ def clear_data():
|
|
47 |
cv_texts, cv_names, cv_vectors, faiss_index = [], [], [], None
|
48 |
return "π§Ή Cleared."
|
49 |
|
50 |
-
with gr.Blocks(
|
51 |
-
gr.Markdown("
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
result_output = gr.Textbox(label="Results", lines=12, interactive=False)
|
64 |
-
|
65 |
-
with gr.Row():
|
66 |
-
clear_btn = gr.Button("π§Ή Clear All")
|
67 |
-
clear_output = gr.Textbox(label="Status")
|
68 |
|
69 |
upload_btn.click(upload_cvs, inputs=[file_input], outputs=[upload_output])
|
70 |
match_btn.click(match_jd, inputs=[jd_input], outputs=[result_output])
|
|
|
47 |
cv_texts, cv_names, cv_vectors, faiss_index = [], [], [], None
|
48 |
return "π§Ή Cleared."
|
49 |
|
50 |
+
with gr.Blocks() as app:
|
51 |
+
gr.Markdown("## π CV Matcher with Groq API")
|
52 |
+
|
53 |
+
file_input = gr.File(file_types=[".pdf", ".docx"], file_count="multiple", label="π€ Upload CVs")
|
54 |
+
upload_btn = gr.Button("π Upload & Index")
|
55 |
+
upload_output = gr.Textbox(label="Upload Status")
|
56 |
+
|
57 |
+
jd_input = gr.Textbox(label="π Paste Job Description", lines=8)
|
58 |
+
match_btn = gr.Button("π Match CVs")
|
59 |
+
result_output = gr.Textbox(label="Results", lines=12)
|
60 |
+
|
61 |
+
clear_btn = gr.Button("π§Ή Clear All")
|
62 |
+
clear_output = gr.Textbox(label="Reset Status")
|
|
|
|
|
|
|
|
|
|
|
63 |
|
64 |
upload_btn.click(upload_cvs, inputs=[file_input], outputs=[upload_output])
|
65 |
match_btn.click(match_jd, inputs=[jd_input], outputs=[result_output])
|