Skip to content

Commit

Permalink
06.29 update
Browse files Browse the repository at this point in the history
  • Loading branch information
jiatastic committed Jun 29, 2023
1 parent b2bf772 commit bd1e253
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
xdg-utils

w3m
8 changes: 4 additions & 4 deletions pages/Behavioral Screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ def load_css():

def initialize_session_state():

if 'bjd_docsearch' not in st.session_state:
if "bjd_docsearch" not in st.session_state:
st.session_state.bjd_docserch = save_vector(bjd)

if 'bjd_retriever' not in st.session_state:
if "bjd_retriever" not in st.session_state:
st.session_state.bjd_retriever = st.session_state.bjd_docserch.as_retriever(search_type="similarity")

if 'bjd_chain_type_kwargs' not in st.session_state:
if "bjd_chain_type_kwargs" not in st.session_state:
Behavioral_Prompt = PromptTemplate(input_variables=["context", "question"],
template=templates.behavioral_template)
st.session_state.bjd_chain_type_kwargs = {"prompt": Behavioral_Prompt}
Expand All @@ -91,7 +91,7 @@ def initialize_session_state():
if "memory" not in st.session_state:
st.session_state.memory = ConversationBufferMemory()

if 'guideline' not in st.session_state:
if "guideline" not in st.session_state:

llm = ChatOpenAI(
model_name="gpt-3.5-turbo",
Expand Down
2 changes: 1 addition & 1 deletion pages/Resume Screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def answer_call_back():

credit_card_placeholder.caption(f"""
Used {st.session_state.token_count} tokens \n
You are on {int((len(st.session_state.resume_history) / 11) ** 100)}% of the wat to the end.""")
Progress: {int((len(st.session_state.resume_history) / 11) ** 100)}% completed.""")

else:
st.write("Please submit your resume and select desired position first.")
2 changes: 1 addition & 1 deletion pages/Technical Screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,6 @@ def answer_call_back():

credit_card_placeholder.caption(f"""
Used {st.session_state.token_count} tokens \n
You are on {int((len(st.session_state.jd_history) / 11 ** 100))}% of the toward to the end.""")
Progress: {int((len(st.session_state.jd_history) / 11 ** 100))}% completed.""")
else:
st.write("Please enter the job description first.")

0 comments on commit bd1e253

Please sign in to comment.