girishwangikar commited on
Commit
5af086a
Β·
verified Β·
1 Parent(s): 3264ac4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +40 -2
app.py CHANGED
@@ -52,6 +52,36 @@ They should be reviewed and adjusted to better fit the specific role, company cu
52
  </p>
53
  """
54
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  TITLE = "<h1>πŸ“„ ATS Resume Analyzer πŸ“„</h1>"
56
  PLACEHOLDER = "Chat with AI about your resume and job descriptions..."
57
 
@@ -165,9 +195,14 @@ with gr.Blocks(css=CSS, theme="Nymbo/Nymbo_Theme") as demo:
165
  gr.HTML(TITLE)
166
 
167
  with gr.Tab("Resume Analyzer"):
 
168
  with gr.Row():
169
  with gr.Column():
170
- with_job_description = gr.Checkbox(label="Analyze with Job Description", value=True)
 
 
 
 
171
  job_description = gr.Textbox(label="Job Description", lines=5)
172
  resume_file = gr.File(label="Upload Resume (PDF or DOCX)")
173
  with gr.Column():
@@ -181,12 +216,15 @@ with gr.Blocks(css=CSS, theme="Nymbo/Nymbo_Theme") as demo:
181
  rephrased_output = gr.Markdown()
182
 
183
  with gr.Tab("Cover Letter Generator"):
 
184
  gr.HTML(COVER_LETTER_DISCLAIMER)
185
  generate_cl_btn = gr.Button("Generate Cover Letter")
186
  cover_letter_output = gr.Markdown()
187
 
188
  with gr.Tab("Interview Questions Generator"):
 
189
  gr.HTML(INTERVIEW_QUESTIONS_DISCLAIMER)
 
190
  generate_iq_btn = gr.Button("Generate Interview Questions")
191
  interview_questions_output = gr.Markdown()
192
 
@@ -238,7 +276,7 @@ with gr.Blocks(css=CSS, theme="Nymbo/Nymbo_Theme") as demo:
238
 
239
  generate_iq_btn.click(
240
  generate_interview_questions,
241
- inputs=[job_description, temperature, max_tokens],
242
  outputs=[interview_questions_output]
243
  )
244
 
 
52
  </p>
53
  """
54
 
55
+ RESUME_ANALYZER_INSTRUCTIONS = """
56
+ <div style="background-color: #f0f0f0; padding: 10px; border-radius: 5px; margin-bottom: 10px;">
57
+ <p><strong>Instructions:</strong></p>
58
+ <ul>
59
+ <li>Upload your resume (PDF or DOCX) in the file upload area.</li>
60
+ <li>If you want to analyze your resume against a specific job description, keep the checkbox checked and enter the job description in the text box.</li>
61
+ <li>If you want a general resume analysis without a job description, uncheck the "Analyze with Job Description" box.</li>
62
+ <li>Click "Analyze Resume" to get your results.</li>
63
+ </ul>
64
+ </div>
65
+ """
66
+
67
+ COVER_LETTER_INSTRUCTIONS = """
68
+ <div style="background-color: #f0f0f0; padding: 10px; border-radius: 5px; margin-bottom: 10px;">
69
+ <p><strong>Instructions for Cover Letter Generation:</strong></p>
70
+ <ol>
71
+ <li>First, go to the "Resume Analyzer" tab.</li>
72
+ <li>Upload your resume and enter the job description there.</li>
73
+ <li>Then, come back to this tab and click "Generate Cover Letter".</li>
74
+ </ol>
75
+ </div>
76
+ """
77
+
78
+ INTERVIEW_QUESTIONS_INSTRUCTIONS = """
79
+ <div style="background-color: #f0f0f0; padding: 10px; border-radius: 5px; margin-bottom: 10px;">
80
+ <p><strong>Instructions for Interview Questions Generation:</strong></p>
81
+ <p>Enter the job description in the text box below and click "Generate Interview Questions".</p>
82
+ </div>
83
+ """
84
+
85
  TITLE = "<h1>πŸ“„ ATS Resume Analyzer πŸ“„</h1>"
86
  PLACEHOLDER = "Chat with AI about your resume and job descriptions..."
87
 
 
195
  gr.HTML(TITLE)
196
 
197
  with gr.Tab("Resume Analyzer"):
198
+ gr.HTML(RESUME_ANALYZER_INSTRUCTIONS)
199
  with gr.Row():
200
  with gr.Column():
201
+ with_job_description = gr.Checkbox(
202
+ label="Analyze with Job Description",
203
+ value=True,
204
+ info="Uncheck this box for a general resume analysis without a specific job description."
205
+ )
206
  job_description = gr.Textbox(label="Job Description", lines=5)
207
  resume_file = gr.File(label="Upload Resume (PDF or DOCX)")
208
  with gr.Column():
 
216
  rephrased_output = gr.Markdown()
217
 
218
  with gr.Tab("Cover Letter Generator"):
219
+ gr.HTML(COVER_LETTER_INSTRUCTIONS)
220
  gr.HTML(COVER_LETTER_DISCLAIMER)
221
  generate_cl_btn = gr.Button("Generate Cover Letter")
222
  cover_letter_output = gr.Markdown()
223
 
224
  with gr.Tab("Interview Questions Generator"):
225
+ gr.HTML(INTERVIEW_QUESTIONS_INSTRUCTIONS)
226
  gr.HTML(INTERVIEW_QUESTIONS_DISCLAIMER)
227
+ interview_job_description = gr.Textbox(label="Job Description for Interview Questions", lines=5)
228
  generate_iq_btn = gr.Button("Generate Interview Questions")
229
  interview_questions_output = gr.Markdown()
230
 
 
276
 
277
  generate_iq_btn.click(
278
  generate_interview_questions,
279
+ inputs=[interview_job_description, temperature, max_tokens],
280
  outputs=[interview_questions_output]
281
  )
282