Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -158,6 +158,7 @@ def process_inputs(resume, job_description, custom_instructions,gemini_api_key):
|
|
| 158 |
|
| 159 |
|
| 160 |
custom_instructions_examples = (
|
|
|
|
| 161 |
"Make a single or double paged resume\n"
|
| 162 |
"I don't have projects to write so create some projects which matches Job description\n"
|
| 163 |
"Align 100% with the Job description"
|
|
@@ -165,17 +166,18 @@ custom_instructions_examples = (
|
|
| 165 |
|
| 166 |
|
| 167 |
with gr.Blocks() as demo:
|
| 168 |
-
gr.Markdown("
|
| 169 |
with gr.Row():
|
| 170 |
with gr.Column():
|
| 171 |
resume = gr.File(label="Upload Resume", file_types=[".pdf"])
|
| 172 |
job_description = gr.Textbox(label="Paste Job Description here", lines=5)
|
| 173 |
-
custom_instructions = gr.Textbox(label="Enter Your Instructions", lines=10,
|
| 174 |
gr.Markdown("Get your free API key: [Gemini API]('https://aistudio.google.com/app/apikey')")
|
| 175 |
gemini_api_key = gr.Textbox(label="Enter your Gemini API key..!!!", lines=1,placeholder="Dont worry we won't store your API key!!!")
|
| 176 |
submit_btn = gr.Button("Submit")
|
| 177 |
with gr.Column():
|
| 178 |
-
|
|
|
|
| 179 |
submit_btn.click(
|
| 180 |
fn=process_inputs,
|
| 181 |
inputs=[resume, job_description,custom_instructions,gemini_api_key],
|
|
|
|
| 158 |
|
| 159 |
|
| 160 |
custom_instructions_examples = (
|
| 161 |
+
"Few Examples:\n\n"
|
| 162 |
"Make a single or double paged resume\n"
|
| 163 |
"I don't have projects to write so create some projects which matches Job description\n"
|
| 164 |
"Align 100% with the Job description"
|
|
|
|
| 166 |
|
| 167 |
|
| 168 |
with gr.Blocks() as demo:
|
| 169 |
+
gr.Markdown("# Enhancv")
|
| 170 |
with gr.Row():
|
| 171 |
with gr.Column():
|
| 172 |
resume = gr.File(label="Upload Resume", file_types=[".pdf"])
|
| 173 |
job_description = gr.Textbox(label="Paste Job Description here", lines=5)
|
| 174 |
+
custom_instructions = gr.Textbox(label="Enter Your Instructions", lines=10,placeholder=custom_instructions_examples)
|
| 175 |
gr.Markdown("Get your free API key: [Gemini API]('https://aistudio.google.com/app/apikey')")
|
| 176 |
gemini_api_key = gr.Textbox(label="Enter your Gemini API key..!!!", lines=1,placeholder="Dont worry we won't store your API key!!!")
|
| 177 |
submit_btn = gr.Button("Submit")
|
| 178 |
with gr.Column():
|
| 179 |
+
gr.Markdown("Paste your Latex File here to get your resume: [Overleaf]('https://www.overleaf.com/')")
|
| 180 |
+
output = gr.Textbox(label="LaTEX Resume File", lines=20)
|
| 181 |
submit_btn.click(
|
| 182 |
fn=process_inputs,
|
| 183 |
inputs=[resume, job_description,custom_instructions,gemini_api_key],
|