Skip to content

Commit

Permalink
v0.1.1update
Browse files Browse the repository at this point in the history
  • Loading branch information
jiatastic committed Jul 7, 2023
1 parent 4c9e2e3 commit ae24956
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 16 deletions.
4 changes: 4 additions & 0 deletions .streamlit/secrets.toml
Original file line number Diff line number Diff line change
@@ -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"
17 changes: 8 additions & 9 deletions Homepage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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: [email protected])
""")

st.markdown("<hr>", unsafe_allow_html=True)
Expand Down Expand Up @@ -81,5 +81,4 @@ def load_lottiefile(filepath: str):


st.markdown("<hr>", unsafe_allow_html=True)
st.markdown("<p style='text-align: center; color: grey;'> Contact: [email protected] </p>", unsafe_allow_html=True)
st.markdown("<p style='text-align: center; color: grey;'> Fordham University Center of Digital Transformation DesignLAB </p>", unsafe_allow_html=True)
6 changes: 5 additions & 1 deletion pages/Resume Screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 0 additions & 6 deletions pages/Technical Screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Binary file modified prompts/__pycache__/prompt_selector.cpython-310.pyc
Binary file not shown.
1 change: 1 addition & 0 deletions prompts/examples.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
""" examples for few-shot prompts"""
3 changes: 3 additions & 0 deletions prompts/prompt_selector.py
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down
Binary file modified temp/audio.wav
Binary file not shown.

0 comments on commit ae24956

Please sign in to comment.