Update app.py
Browse files
app.py
CHANGED
|
@@ -1,18 +1,19 @@
|
|
| 1 |
-
import gradio as gr
|
| 2 |
-
from
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
gr.
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
| 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()
|