diff --git a/.streamlit/secrets.toml b/.streamlit/secrets.toml new file mode 100644 index 0000000..22a2460 --- /dev/null +++ b/.streamlit/secrets.toml @@ -0,0 +1,4 @@ +openai.organization = "org-PKfUSNXJSLNqWsYbubAwas81" +OPENAI_API_KEY = "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" +aws_secret_access_key = "b60UL0yN1mU3iiPQKvunR3J8K/h/flSlCy7UA1wV" +aws_access_key_id = "AKIATDEYCF7UTWRIFRUC" \ No newline at end of file diff --git a/Homepage.py b/Homepage.py index ddb9cd5..c9ed6a4 100644 --- a/Homepage.py +++ b/Homepage.py @@ -17,8 +17,15 @@ def load_lottiefile(filepath: str): st.markdown('### GPTInterviewer - V0.1.1') st.markdown(""" + #### Let's contact: + [Haoxiang Jia](https://www.linkedin.com/in/haoxiang-jia/) - #### What's Next? + [Zicheng Wang](https://www.linkedin.com/in/todd-wang-5001aa264/) + + #### Please fill the form, we'd love to have your feedback: + [Feedback Form](https://docs.google.com/forms/d/13f4q03bk4lD7sKR7qZ8UM1lQDo6NhRaAKv7uIeXHEaQ/edit) + + #### What's next? v0.1.2: 1. A more robust llm-powered evaluation system. @@ -32,13 +39,6 @@ def load_lottiefile(filepath: str): [Langchain](https://github.com/hwchase17/langchain) - #### Addition - We're trying to access GPT-4 for everyone to use. - - Feel free to contact us if you have any questions or suggestions. - - (Email: zwang531@fordham.edu) - """) st.markdown("
", unsafe_allow_html=True) @@ -81,5 +81,4 @@ def load_lottiefile(filepath: str): st.markdown("
", unsafe_allow_html=True) -st.markdown("

Contact: zwang531@fordham.edu

", unsafe_allow_html=True) st.markdown("

Fordham University Center of Digital Transformation DesignLAB

", unsafe_allow_html=True) \ No newline at end of file diff --git a/pages/Resume Screen.py b/pages/Resume Screen.py index 82f851c..a9a6f06 100644 --- a/pages/Resume Screen.py +++ b/pages/Resume Screen.py @@ -23,7 +23,11 @@ from IPython.display import Audio ### —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— -#nltk.download('punkt') + +try: + nltk.data.find('tokenizers/punkt') +except LookupError: + nltk.download('punkt') def load_lottiefile(filepath: str): with open(filepath, "r") as f: diff --git a/pages/Technical Screen.py b/pages/Technical Screen.py index 080a562..6daa407 100644 --- a/pages/Technical Screen.py +++ b/pages/Technical Screen.py @@ -36,12 +36,6 @@ def load_lottiefile(filepath: str): - Start introduce yourself and enjoy! """) jd = st.text_area("Please enter the job description here (If you don't have one, enter keywords, such as PostgreSQL or Python instead): ") -with st.sidebar: - st.markdown("### What's next?") - st.write(""" - For example, if the job description requires knowledge of data mining, GPT Interviewer will ask you questions like "Explains overfitting or How does backpropagation work?" - """) - ### —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— @dataclass class Message: diff --git a/prompts/__pycache__/prompt_selector.cpython-310.pyc b/prompts/__pycache__/prompt_selector.cpython-310.pyc index 1a2f582..a04e8b3 100644 Binary files a/prompts/__pycache__/prompt_selector.cpython-310.pyc and b/prompts/__pycache__/prompt_selector.cpython-310.pyc differ diff --git a/prompts/examples.py b/prompts/examples.py index e69de29..795d93d 100644 --- a/prompts/examples.py +++ b/prompts/examples.py @@ -0,0 +1 @@ +""" examples for few-shot prompts""" \ No newline at end of file diff --git a/prompts/prompt_selector.py b/prompts/prompt_selector.py index 287c059..c56f299 100644 --- a/prompts/prompt_selector.py +++ b/prompts/prompt_selector.py @@ -1,5 +1,8 @@ from langchain.prompts import PromptTemplate def prompt_sector(position: str, prompts: classmethod) -> dict: + + """ Select the prompt template based on the position """ + if position == 'Data Analyst': PROMPT = PromptTemplate( template= prompts.da_template, input_variables=["context", "question"] diff --git a/temp/audio.wav b/temp/audio.wav index ce8dbc2..0b139c3 100644 Binary files a/temp/audio.wav and b/temp/audio.wav differ