datasciencedojo commited on
Commit
bbd5462
1 Parent(s): 65ac5d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import streamlit as st
2
- from utils.utilss import *
3
- from prompts import cover_letter_prompts
4
  import pyperclip
5
  from dotenv import load_dotenv
6
  import pandas as pd
@@ -140,7 +140,7 @@ def main():
140
  st.title("Job Hiring Assistant")
141
 
142
 
143
- # Select Cover Letter Style
144
  st.sidebar.header("Select Task")
145
  selection = st.sidebar.radio("Select option", ("Generate Job Adverstisment", "Resume Analysis","Resume Selection"))
146
 
@@ -154,7 +154,7 @@ def main():
154
  job_requirement = st.text_area("Enter job requirement here")
155
  if st.button("Generate Job Adverstisment"):
156
  if job_requirement is not None:
157
- prompt_template = cover_letter_prompts.prompt_template_classic
158
  jobadv = generate_adv(job_requirement,job_title_text, prompt_template)
159
  st.subheader("Job Adverstisment:")
160
  st.markdown(jobadv)
@@ -217,7 +217,7 @@ def main():
217
  if st.session_state.input_hash != current_input_hash:
218
  # Inputs have changed, generate new analysis
219
  st.session_state.input_hash = current_input_hash
220
- prompt_template = cover_letter_prompts.prompt_template_modern
221
  response = generate_analysis(resume_text, job_pref, job_title_text, must_have, prompt_template)
222
 
223
  # Cache the result
@@ -253,7 +253,7 @@ def main():
253
  if st.session_state.input_hash_sel != current_input_hash:
254
  # Inputs have changed, generate new analysis
255
  st.session_state.input_hash_sel = current_input_hash
256
- prompt_template = cover_letter_prompts.prompt_template_resumes_
257
  response = generate_sel_analysis(resume_text, job_pref, job_title_text, must_have, prompt_template)
258
  print('response:',response)
259
  response_anal=max(response, key=lambda x: x['overall_match_score'])
 
1
  import streamlit as st
2
+ from utils.utils import *
3
+ import prompts
4
  import pyperclip
5
  from dotenv import load_dotenv
6
  import pandas as pd
 
140
  st.title("Job Hiring Assistant")
141
 
142
 
143
+ # Select Task
144
  st.sidebar.header("Select Task")
145
  selection = st.sidebar.radio("Select option", ("Generate Job Adverstisment", "Resume Analysis","Resume Selection"))
146
 
 
154
  job_requirement = st.text_area("Enter job requirement here")
155
  if st.button("Generate Job Adverstisment"):
156
  if job_requirement is not None:
157
+ prompt_template = prompts.prompt_template_classic
158
  jobadv = generate_adv(job_requirement,job_title_text, prompt_template)
159
  st.subheader("Job Adverstisment:")
160
  st.markdown(jobadv)
 
217
  if st.session_state.input_hash != current_input_hash:
218
  # Inputs have changed, generate new analysis
219
  st.session_state.input_hash = current_input_hash
220
+ prompt_template = prompts.prompt_template_modern
221
  response = generate_analysis(resume_text, job_pref, job_title_text, must_have, prompt_template)
222
 
223
  # Cache the result
 
253
  if st.session_state.input_hash_sel != current_input_hash:
254
  # Inputs have changed, generate new analysis
255
  st.session_state.input_hash_sel = current_input_hash
256
+ prompt_template = prompts.prompt_template_resumes_
257
  response = generate_sel_analysis(resume_text, job_pref, job_title_text, must_have, prompt_template)
258
  print('response:',response)
259
  response_anal=max(response, key=lambda x: x['overall_match_score'])