init: first app commit
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitignore +162 -0
- .streamlit/config.toml +4 -0
- app.py +185 -0
- app_utils.py +23 -0
- aws/synthesize_speech.py +49 -0
- data/INFORMATION-TECHNOLOGY/10089434.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/10247517.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/10265057.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/10553553.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/10641230.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/10839851.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/10840430.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/11580408.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/11584809.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/11957080.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/12045067.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/12334140.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/12635195.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/12763627.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/13385306.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/13405733.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/13477922.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/13836471.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/14789139.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/15118506.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/15297298.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/15651486.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/15791766.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/15802627.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/16186411.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/16533554.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/16899268.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/17111768.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/17641670.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/17681064.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/17688766.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/17987433.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/18067556.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/18159866.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/18176523.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/18187364.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/18301617.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/18752129.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/19201175.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/19796840.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/19850482.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/20001721.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/20024870.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/20237244.pdf +0 -0
- data/INFORMATION-TECHNOLOGY/20408458.pdf +0 -0
.gitignore
ADDED
@@ -0,0 +1,162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Byte-compiled / optimized / DLL files
|
2 |
+
__pycache__/
|
3 |
+
*.py[cod]
|
4 |
+
*$py.class
|
5 |
+
|
6 |
+
# C extensions
|
7 |
+
*.so
|
8 |
+
|
9 |
+
# Distribution / packaging
|
10 |
+
.Python
|
11 |
+
build/
|
12 |
+
develop-eggs/
|
13 |
+
dist/
|
14 |
+
downloads/
|
15 |
+
eggs/
|
16 |
+
.eggs/
|
17 |
+
lib/
|
18 |
+
lib64/
|
19 |
+
parts/
|
20 |
+
sdist/
|
21 |
+
var/
|
22 |
+
wheels/
|
23 |
+
share/python-wheels/
|
24 |
+
*.egg-info/
|
25 |
+
.installed.cfg
|
26 |
+
*.egg
|
27 |
+
MANIFEST
|
28 |
+
|
29 |
+
# PyInstaller
|
30 |
+
# Usually these files are written by a python script from a template
|
31 |
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
32 |
+
*.manifest
|
33 |
+
*.spec
|
34 |
+
|
35 |
+
# Installer logs
|
36 |
+
pip-log.txt
|
37 |
+
pip-delete-this-directory.txt
|
38 |
+
|
39 |
+
# Unit test / coverage reports
|
40 |
+
htmlcov/
|
41 |
+
.tox/
|
42 |
+
.nox/
|
43 |
+
.coverage
|
44 |
+
.coverage.*
|
45 |
+
.cache
|
46 |
+
nosetests.xml
|
47 |
+
coverage.xml
|
48 |
+
*.cover
|
49 |
+
*.py,cover
|
50 |
+
.hypothesis/
|
51 |
+
.pytest_cache/
|
52 |
+
cover/
|
53 |
+
|
54 |
+
# Translations
|
55 |
+
*.mo
|
56 |
+
*.pot
|
57 |
+
|
58 |
+
# Django stuff:
|
59 |
+
*.log
|
60 |
+
local_settings.py
|
61 |
+
db.sqlite3
|
62 |
+
db.sqlite3-journal
|
63 |
+
|
64 |
+
# Flask stuff:
|
65 |
+
instance/
|
66 |
+
.webassets-cache
|
67 |
+
|
68 |
+
# Scrapy stuff:
|
69 |
+
.scrapy
|
70 |
+
|
71 |
+
# Sphinx documentation
|
72 |
+
docs/_build/
|
73 |
+
|
74 |
+
# PyBuilder
|
75 |
+
.pybuilder/
|
76 |
+
target/
|
77 |
+
|
78 |
+
# Jupyter Notebook
|
79 |
+
.ipynb_checkpoints
|
80 |
+
|
81 |
+
# IPython
|
82 |
+
profile_default/
|
83 |
+
ipython_config.py
|
84 |
+
|
85 |
+
# pyenv
|
86 |
+
# For a library or package, you might want to ignore these files since the code is
|
87 |
+
# intended to run in multiple environments; otherwise, check them in:
|
88 |
+
# .python-version
|
89 |
+
|
90 |
+
# pipenv
|
91 |
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
92 |
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
93 |
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
94 |
+
# install all needed dependencies.
|
95 |
+
#Pipfile.lock
|
96 |
+
|
97 |
+
# poetry
|
98 |
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
99 |
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
100 |
+
# commonly ignored for libraries.
|
101 |
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
102 |
+
#poetry.lock
|
103 |
+
|
104 |
+
# pdm
|
105 |
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
106 |
+
#pdm.lock
|
107 |
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
108 |
+
# in version control.
|
109 |
+
# https://pdm.fming.dev/#use-with-ide
|
110 |
+
.pdm.toml
|
111 |
+
|
112 |
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
113 |
+
__pypackages__/
|
114 |
+
|
115 |
+
# Celery stuff
|
116 |
+
celerybeat-schedule
|
117 |
+
celerybeat.pid
|
118 |
+
|
119 |
+
# SageMath parsed files
|
120 |
+
*.sage.py
|
121 |
+
|
122 |
+
# Environments
|
123 |
+
.env
|
124 |
+
.venv
|
125 |
+
env/
|
126 |
+
venv/
|
127 |
+
ENV/
|
128 |
+
env.bak/
|
129 |
+
venv.bak/
|
130 |
+
|
131 |
+
# Spyder project settings
|
132 |
+
.spyderproject
|
133 |
+
.spyproject
|
134 |
+
|
135 |
+
# Rope project settings
|
136 |
+
.ropeproject
|
137 |
+
|
138 |
+
# mkdocs documentation
|
139 |
+
/site
|
140 |
+
|
141 |
+
# mypy
|
142 |
+
.mypy_cache/
|
143 |
+
.dmypy.json
|
144 |
+
dmypy.json
|
145 |
+
|
146 |
+
# Pyre type checker
|
147 |
+
.pyre/
|
148 |
+
|
149 |
+
# pytype static type analyzer
|
150 |
+
.pytype/
|
151 |
+
|
152 |
+
# Cython debug symbols
|
153 |
+
cython_debug/
|
154 |
+
|
155 |
+
# PyCharm
|
156 |
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
157 |
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
158 |
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
159 |
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
160 |
+
.idea/
|
161 |
+
.HiringLaunch/venv
|
162 |
+
.streamlit/secrets.toml
|
.streamlit/config.toml
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[theme]
|
2 |
+
base = 'dark'
|
3 |
+
primaryColor = 'F63366'
|
4 |
+
font = 'sans serif'
|
app.py
ADDED
@@ -0,0 +1,185 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
from streamlit_option_menu import option_menu
|
3 |
+
from app_utils import switch_page
|
4 |
+
import streamlit as st
|
5 |
+
from PIL import Image
|
6 |
+
|
7 |
+
im = Image.open("icon.png")
|
8 |
+
st.set_page_config(page_title="hAIring Buddy", layout="centered", page_icon=im)
|
9 |
+
|
10 |
+
lan = st.selectbox("#### Language", ["English", "हिंदी"])
|
11 |
+
|
12 |
+
if lan == "हिंदी":
|
13 |
+
home_title = "एआई साक्षात्कारकर्ता"
|
14 |
+
home_introduction = "जेनरेटिव एआई के साथ आपके साक्षात्कार की तैयारी को सशक्त बनाना।"
|
15 |
+
with st.sidebar:
|
16 |
+
st.markdown('एआई साक्षात्कारकर्ता - V0.1.2')
|
17 |
+
st.markdown("""
|
18 |
+
#### संपर्क करें:
|
19 |
+
[आदित्य अवती](https://www.linkedin.com/in/adithya-awati-87b7541a3/)
|
20 |
+
|
21 |
+
[आदर्श यू](https://www.linkedin.com/in/todd-wang-5001aa264/)
|
22 |
+
|
23 |
+
#### द्वारा संचालित
|
24 |
+
|
25 |
+
[ओपनएआई](https://openai.com/)
|
26 |
+
|
27 |
+
[फैस](https://github.com/facebookresearch/faiss)
|
28 |
+
|
29 |
+
[लैंगचेन](https://github.com/hwchase17/langchain)
|
30 |
+
|
31 |
+
""")
|
32 |
+
st.markdown(
|
33 |
+
"<style>#MainMenu{visibility:hidden;}</style>",
|
34 |
+
unsafe_allow_html=True
|
35 |
+
)
|
36 |
+
st.image(im, width=100)
|
37 |
+
st.markdown(f"""# {home_title} <span style=color:#2E9BF5><font size=5>बीटा</font></span>""",unsafe_allow_html=True)
|
38 |
+
st.markdown("""\n""")
|
39 |
+
#st.markdown("#### अभिवादन")
|
40 |
+
st.markdown("एआई साक्षात्कारकर्ता में आपका स्वागत है! एआई साक्षात्कारकर्ता जेनरेटिव एआई द्वारा संचालित आपका व्यक्तिगत साक्षात्कारकर्ता है जो नकली साक्षात्कार आयोजित करता है।"
|
41 |
+
"आप अपना रेज़्यूमे अपलोड कर सकते हैं और नौकरी का विवरण दर्ज कर सकते हैं, और एआई साक्षात्कारकर्ता आपसे अनुकूलित प्रश्न पूछेगा। इसके अतिरिक्त, आप अपने स्वयं के साक्षात्कारकर्ता को कॉन्फ़िगर कर सकते हैं!")
|
42 |
+
st.markdown("""\n""")
|
43 |
+
with st.expander("अद्यतन"):
|
44 |
+
st.write("""
|
45 |
+
23/12/2023
|
46 |
+
- उपयोगकर्ता इनपुट रिकॉर्ड करने में विफल होने पर होने वाली त्रुटि को ठीक करें। """)
|
47 |
+
with st.expander("आगे क्या आ रहा है?"):
|
48 |
+
st.write("""
|
49 |
+
एक सहज अनुभव के लिए बेहतर आवाज इंटरैक्शन। """)
|
50 |
+
st.markdown("""\n""")
|
51 |
+
st.markdown("#### शुरू हो जाओ!")
|
52 |
+
st.markdown("अपना साक्षात्कार शुरू करने के लिए निम्नलिखित स्क्रीन में से एक का चयन करें!")
|
53 |
+
selected = option_menu(
|
54 |
+
menu_title= None,
|
55 |
+
options=["व्यावसायिक", "रेज़्यूमे", "व्यवहार", "अनुकूलित करें!"],
|
56 |
+
icons = ["cast", "cloud-upload", "cast"],
|
57 |
+
default_index=0,
|
58 |
+
orientation="horizontal",
|
59 |
+
)
|
60 |
+
if selected == 'व्यावसायिक':
|
61 |
+
st.info("""
|
62 |
+
इस सत्र में, एआई साक्षात्कारकर्ता नौकरी विवरण के संबंध में आपके तकनीकी कौशल का आकलन करेगा।
|
63 |
+
ध्यान दें: आपके उत्तर की अधिकतम लंबाई 4097 टोकन है!
|
64 |
+
- प्रत्येक साक्षात्कार में 10 से 15 मिनट का समय लगेगा।
|
65 |
+
- एक नया सत्र शुरू करने के लिए, बस पृष्ठ को ताज़ा करें।
|
66 |
+
- अपनी पसंदीदा इंटरैक्शन शैली चुनें (चैट/वॉयस)
|
67 |
+
- अपना परिचय देना शुरू करें और आनंद लें! """)
|
68 |
+
if st.button("साक्षात्कार शुरू करें!"):
|
69 |
+
switch_page("व्यवहार स्क्रीन")
|
70 |
+
|
71 |
+
if selected == 'रेज़्यूमे':
|
72 |
+
st.info("""
|
73 |
+
इस सत्र में, एआई साक्षात्कारकर्ता आपके रेज़्यूमे की समीक्षा करेगा और आपके पिछले अनुभवों पर चर्चा करेगा।
|
74 |
+
ध्यान दें: आपके उत्तर की अधिकतम लंबाई 4097 टोकन है!
|
75 |
+
- प्रत्येक साक्षात्कार में 10 से 15 मिनट का समय लगेगा।
|
76 |
+
- एक नया सत्र शुरू करने के लिए, बस पृष्ठ को ताज़ा करें।
|
77 |
+
- अपनी पसंदीदा इंटरैक्शन शैली चुनें (चैट/वॉयस)
|
78 |
+
- अपना परिचय देना शुरू करें और आनंद लें! """
|
79 |
+
)
|
80 |
+
if st.button("साक्षात्कार शुरू करें!"):
|
81 |
+
switch_page("रेज़्यूमे स्क्रीन")
|
82 |
+
|
83 |
+
if selected == 'अनुकूलित करें!':
|
84 |
+
st.info("""
|
85 |
+
इस सत्र में, आप अपने स्वयं के एआई साक्षात्कारकर्ता को अनुकूलित कर सकते हैं और उसके साथ अभ्यास कर सकते हैं!
|
86 |
+
- विभिन्न विशिष्टताओं में एआई साक्षात्कारकर्ता को कॉन्फ़िगर करें।
|
87 |
+
- विभिन्न व्यक्तित्वों में एआई साक्षात्कारकर्ता को कॉन्फ़िगर करें।
|
88 |
+
- आवाज के विभिन्न स्वर। जुलाई के अंत में आ रहा है""")
|
89 |
+
if st.button("साक्षात्कार शुरू करें!"):
|
90 |
+
switch_page("अनुकूलित स्क्रीन")
|
91 |
+
|
92 |
+
st.markdown("""\n""")
|
93 |
+
st.markdown("#### विकी")
|
94 |
+
st.write(
|
95 |
+
'[सामान्य FAQ, भविष्य के अपडेट और अधिक देखने के लिए यहां क्लिक करें!](https://jiatastic.notion.site/wiki-8d962051e57a48ccb304e920afa0c6a8?pvs=4)')
|
96 |
+
#st.write(
|
97 |
+
# f'<iframe src="https://17nxkr0j95z3vy.embednotionpage.com/AI-Interviewer-Wiki-8d962051e57a48ccb304e920afa0c6a8" style="width:100%; height:100%; min-height:500px; border:0; padding:0;"/>',
|
98 |
+
# unsafe_allow_html=True,
|
99 |
+
# )
|
100 |
+
|
101 |
+
if lan == 'English':
|
102 |
+
home_title = "hAIring Buddy"
|
103 |
+
home_introduction = "Welcome to use this AI Interviewer, it can help you prepare for the interview through generative AI."
|
104 |
+
with st.sidebar:
|
105 |
+
st.markdown('hAIring Buddy - V0.1.2')
|
106 |
+
st.markdown("""
|
107 |
+
#### LinkedIn:
|
108 |
+
[Adithya Awati](https://www.linkedin.com/in/adithya-awati-87b7541a3/)
|
109 |
+
|
110 |
+
[Adarsh U](https://www.linkedin.com/in/todd-wang-5001aa264/)
|
111 |
+
|
112 |
+
#### Technologies used:
|
113 |
+
|
114 |
+
[OpenAI](https://openai.com/)
|
115 |
+
|
116 |
+
[DeepLake](https://www.activeloop.ai/)
|
117 |
+
|
118 |
+
[Langchain](https://github.com/hwchase17/langchain)
|
119 |
+
""")
|
120 |
+
st.markdown(
|
121 |
+
"<style>#MainMenu{visibility:hidden;}</style>",
|
122 |
+
unsafe_allow_html=True
|
123 |
+
)
|
124 |
+
st.image(im, width=100)
|
125 |
+
st.markdown(f"""# {home_title} <span style=color:#2E9BF5><font size=5>Beta</font></span>""",
|
126 |
+
unsafe_allow_html=True)
|
127 |
+
|
128 |
+
st.markdown("""\n""")
|
129 |
+
# st.markdown("#### Greetings")
|
130 |
+
st.markdown(
|
131 |
+
"Welcome to use this AI Interviewer! 👏It is a personal interviewer driven by generative AI, which can conduct mock interviews. You can upload your resume or copy and paste the job description, and the AI interviewer will ask customized questions based on your situation."
|
132 |
+
)
|
133 |
+
st.markdown("""\n""")
|
134 |
+
with st.expander("Change Log"):
|
135 |
+
st.write("""
|
136 |
+
12/23/2023
|
137 |
+
- Fixed the error message when user input fails""")
|
138 |
+
with st.expander("Future Plans"):
|
139 |
+
st.write("""
|
140 |
+
- Provide more stable and faster voice interaction
|
141 |
+
- Support fully Chinese simulated interviews""")
|
142 |
+
st.markdown("""\n""")
|
143 |
+
st.markdown("#### Let's get started!")
|
144 |
+
st.markdown("Please select one of the following to start your interview!")
|
145 |
+
selected = option_menu(
|
146 |
+
menu_title=None,
|
147 |
+
options=["Professional Assessment", "Resume Assessment", "Behavior Assessment"],
|
148 |
+
icons=["cast", "cloud-upload", "cast"],
|
149 |
+
default_index=0,
|
150 |
+
orientation="horizontal",
|
151 |
+
)
|
152 |
+
if selected == 'Professional Assessment':
|
153 |
+
st.info("""
|
154 |
+
📚In this interview, the AI interviewer will assess your technical capabilities based on the job description.
|
155 |
+
Note: The maximum length of your response is 4097 tokens!
|
156 |
+
- Each interview will last 10 to 15 minutes.
|
157 |
+
- You can start a new interview by refreshing the page.
|
158 |
+
- You can choose your preferred interaction mode (text/voice)
|
159 |
+
- Start introducing yourself!""")
|
160 |
+
if st.button("Start the interview!"):
|
161 |
+
switch_page("Professional Screen")
|
162 |
+
if selected == 'Resume Assessment':
|
163 |
+
st.info("""
|
164 |
+
📚In this interview, the AI interviewer will assess your past experience based on your resume.
|
165 |
+
Note: The maximum length of your response is 4097 tokens!
|
166 |
+
- Each interview will last 10 to 15 minutes.
|
167 |
+
- You can start a new interview by refreshing the page.
|
168 |
+
- You can choose your preferred interaction mode (text/voice)
|
169 |
+
- Start introducing yourself!""")
|
170 |
+
if st.button("Start the interview!"):
|
171 |
+
switch_page("Resume Screen")
|
172 |
+
if selected == 'Behavior Assessment':
|
173 |
+
st.info("""
|
174 |
+
📚In this interview, the AI interviewer will assess your technical capabilities based on your resume.
|
175 |
+
Note: The maximum length of your response is 4097 tokens!
|
176 |
+
- Each interview will last 10 to 15 minutes.
|
177 |
+
- You can start a new interview by refreshing the page.
|
178 |
+
- You can choose your preferred interaction mode (text/voice)
|
179 |
+
- Start introducing yourself!""")
|
180 |
+
if st.button("Start the interview!"):
|
181 |
+
switch_page("Behavioral Screen")
|
182 |
+
st.markdown("""\n""")
|
183 |
+
st.markdown("#### Wiki")
|
184 |
+
st.write(
|
185 |
+
'[Click to view FAQs, updates, and plans!](https://jiatastic.notion.site/wiki-8d962051e57a48ccb304e920afa0c6a8?pvs=4)')
|
app_utils.py
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
def switch_page(page_name: str):
|
2 |
+
from streamlit.runtime.scriptrunner import RerunData, RerunException
|
3 |
+
from streamlit.source_util import get_pages
|
4 |
+
|
5 |
+
def standardize_name(name: str) -> str:
|
6 |
+
return name.lower().replace("_", " ")
|
7 |
+
|
8 |
+
page_name = standardize_name(page_name)
|
9 |
+
|
10 |
+
pages = get_pages("home.py") # OR whatever your main page is called
|
11 |
+
|
12 |
+
for page_hash, config in pages.items():
|
13 |
+
if standardize_name(config["page_name"]) == page_name:
|
14 |
+
raise RerunException(
|
15 |
+
RerunData(
|
16 |
+
page_script_hash=page_hash,
|
17 |
+
page_name=page_name,
|
18 |
+
)
|
19 |
+
)
|
20 |
+
|
21 |
+
page_names = [standardize_name(config["page_name"]) for config in pages.values()]
|
22 |
+
|
23 |
+
raise ValueError(f"Could not find page {page_name}. Must be one of {page_names}")
|
aws/synthesize_speech.py
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import boto3
|
2 |
+
import streamlit as st
|
3 |
+
from contextlib import closing
|
4 |
+
import os
|
5 |
+
import sys
|
6 |
+
import subprocess
|
7 |
+
from tempfile import gettempdir
|
8 |
+
|
9 |
+
Session = boto3.Session(
|
10 |
+
aws_access_key_id = st.secrets['aws_access_key_id'],
|
11 |
+
aws_secret_access_key = st.secrets['aws_secret_access_key'],
|
12 |
+
region_name = "us-east-1"
|
13 |
+
)
|
14 |
+
|
15 |
+
def synthesize_speech(text):
|
16 |
+
Polly = Session.client("polly")
|
17 |
+
response = Polly.synthesize_speech(
|
18 |
+
Text=text,
|
19 |
+
OutputFormat="mp3",
|
20 |
+
VoiceId="Joanna")
|
21 |
+
if "AudioStream" in response:
|
22 |
+
# Note: Closing the stream is important because the service throttles on the
|
23 |
+
# number of parallel connections. Here we are using contextlib.closing to
|
24 |
+
# ensure the close method of the stream object will be called automatically
|
25 |
+
# at the end of the with statement's scope.
|
26 |
+
with closing(response["AudioStream"]) as stream:
|
27 |
+
output = os.path.join(gettempdir(), "speech.mp3")
|
28 |
+
|
29 |
+
try:
|
30 |
+
# Open a file for writing the output as a binary stream
|
31 |
+
with open(output, "wb") as file:
|
32 |
+
file.write(stream.read())
|
33 |
+
except IOError as error:
|
34 |
+
# Could not write to file, exit gracefully
|
35 |
+
print(error)
|
36 |
+
sys.exit(-1)
|
37 |
+
else:
|
38 |
+
# The response didn't contain audio data, exit gracefully
|
39 |
+
print("Could not stream audio")
|
40 |
+
sys.exit(-1)
|
41 |
+
'''
|
42 |
+
# Play the audio using the platform's default player
|
43 |
+
if sys.platform == "win32":
|
44 |
+
os.startfile(output)
|
45 |
+
else:
|
46 |
+
# The following works on macOS and Linux. (Darwin = mac, xdg-open = linux).
|
47 |
+
opener = "open" if sys.platform == "darwin" else "xdg-open"
|
48 |
+
subprocess.call([opener, output])'''
|
49 |
+
return output
|
data/INFORMATION-TECHNOLOGY/10089434.pdf
ADDED
Binary file (27.1 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/10247517.pdf
ADDED
Binary file (25.3 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/10265057.pdf
ADDED
Binary file (20.2 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/10553553.pdf
ADDED
Binary file (24.2 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/10641230.pdf
ADDED
Binary file (21.5 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/10839851.pdf
ADDED
Binary file (21.2 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/10840430.pdf
ADDED
Binary file (24.4 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/11580408.pdf
ADDED
Binary file (22.4 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/11584809.pdf
ADDED
Binary file (42.2 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/11957080.pdf
ADDED
Binary file (28.3 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/12045067.pdf
ADDED
Binary file (26.2 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/12334140.pdf
ADDED
Binary file (30.6 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/12635195.pdf
ADDED
Binary file (18.6 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/12763627.pdf
ADDED
Binary file (22.5 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/13385306.pdf
ADDED
Binary file (22.8 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/13405733.pdf
ADDED
Binary file (26.1 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/13477922.pdf
ADDED
Binary file (22.7 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/13836471.pdf
ADDED
Binary file (22.1 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/14789139.pdf
ADDED
Binary file (26.3 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/15118506.pdf
ADDED
Binary file (32.7 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/15297298.pdf
ADDED
Binary file (23.2 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/15651486.pdf
ADDED
Binary file (25.5 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/15791766.pdf
ADDED
Binary file (22.9 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/15802627.pdf
ADDED
Binary file (26.1 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/16186411.pdf
ADDED
Binary file (27.4 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/16533554.pdf
ADDED
Binary file (23.2 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/16899268.pdf
ADDED
Binary file (19.9 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/17111768.pdf
ADDED
Binary file (51.3 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/17641670.pdf
ADDED
Binary file (34.7 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/17681064.pdf
ADDED
Binary file (23.9 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/17688766.pdf
ADDED
Binary file (21.5 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/17987433.pdf
ADDED
Binary file (25 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/18067556.pdf
ADDED
Binary file (46.1 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/18159866.pdf
ADDED
Binary file (39.8 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/18176523.pdf
ADDED
Binary file (21.6 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/18187364.pdf
ADDED
Binary file (29.8 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/18301617.pdf
ADDED
Binary file (22.3 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/18752129.pdf
ADDED
Binary file (26.7 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/19201175.pdf
ADDED
Binary file (24.3 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/19796840.pdf
ADDED
Binary file (36.9 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/19850482.pdf
ADDED
Binary file (30.5 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/20001721.pdf
ADDED
Binary file (36.8 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/20024870.pdf
ADDED
Binary file (19.7 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/20237244.pdf
ADDED
Binary file (19 kB). View file
|
|
data/INFORMATION-TECHNOLOGY/20408458.pdf
ADDED
Binary file (25.8 kB). View file
|
|