XaKnee commited on
Commit
1b62292
·
verified ·
1 Parent(s): 5b6d513

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -18
app.py CHANGED
@@ -1,18 +1,19 @@
1
- import gradio as gr
2
- from model_loader import load_model
3
- from tailor import tailor_resume
4
-
5
- pipe = load_model()
6
-
7
- def run_tailoring(resume_text, jd_text):
8
- return tailor_resume(pipe, resume_text, jd_text)
9
-
10
- gr.Interface(
11
- fn=run_tailoring,
12
- inputs=[
13
- gr.Textbox(lines=15, label="Paste Resume"),
14
- gr.Textbox(lines=15, label="Paste Job Description"),
15
- ],
16
- outputs=gr.Textbox(lines=20, label="Tailored Resume"),
17
- title="Free LLM Resume Tailor (Phi-2 Powered)"
18
- ).launch()
 
 
1
+ import gradio as gr
2
+ from tailor import tailor_resume
3
+
4
+ def generate(resume, job_desc):
5
+ return tailor_resume(resume, job_desc)
6
+
7
+ iface = gr.Interface(
8
+ fn=generate,
9
+ inputs=[
10
+ gr.Textbox(label="Paste Resume", lines=20, placeholder="Your resume text here"),
11
+ gr.Textbox(label="Paste Job Description", lines=20, placeholder="Job description here")
12
+ ],
13
+ outputs=gr.Textbox(label="Tailored Resume", lines=20),
14
+ title="LLM Resume Tailor (Free CPU Version)",
15
+ description="Tailor your resume to match a job description using a lightweight LLM"
16
+ )
17
+
18
+ if __name__ == "__main__":
19
+ iface.launch()