Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -156,14 +156,23 @@ def process_inputs(resume, job_description, custom_instructions,gemini_api_key):
|
|
156 |
# print(prompt)
|
157 |
return create_resume_agent(prompt)
|
158 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
with gr.Blocks() as demo:
|
160 |
gr.Markdown("## Enhancv")
|
161 |
with gr.Row():
|
162 |
with gr.Column():
|
163 |
resume = gr.File(label="Upload Resume", file_types=[".pdf"])
|
164 |
job_description = gr.Textbox(label="Paste Job Description here", lines=5)
|
165 |
-
custom_instructions = gr.Textbox(label="
|
166 |
-
|
|
|
167 |
submit_btn = gr.Button("Submit")
|
168 |
with gr.Column():
|
169 |
output = gr.Textbox(label="LaTEX Resume File", lines=10)
|
|
|
156 |
# print(prompt)
|
157 |
return create_resume_agent(prompt)
|
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"
|
164 |
+
)
|
165 |
+
|
166 |
+
|
167 |
with gr.Blocks() as demo:
|
168 |
gr.Markdown("## Enhancv")
|
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,value = custom_instructions_examples,placeholder="Start typing your instructions....")
|
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 |
output = gr.Textbox(label="LaTEX Resume File", lines=10)
|