saherPervaiz commited on
Commit
8467e1e
Β·
verified Β·
1 Parent(s): e92236a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -18
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(css=".gr-box {max-width: none !important;}") as app:
51
- gr.Markdown("# πŸ“„ CV Matcher with Groq API")
52
-
53
- with gr.Box():
54
- gr.Markdown("## πŸ“€ Upload CVs")
55
- file_input = gr.File(file_types=[".pdf", ".docx"], file_count="multiple", label="Select CVs")
56
- upload_btn = gr.Button("πŸ“ Upload & Index")
57
- upload_output = gr.Textbox(label="Status")
58
-
59
- with gr.Box():
60
- gr.Markdown("## πŸ“‹ Match Job Description")
61
- jd_input = gr.Textbox(label="Paste Job Description", lines=8, max_lines=12)
62
- match_btn = gr.Button("πŸ” Match CVs")
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])