hydai commited on
Commit
4c1e93c
·
1 Parent(s): 72a8a97

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -13
app.py CHANGED
@@ -3,10 +3,6 @@ import openai
3
  import streamlit as st
4
  import fitz
5
 
6
- # environment setup
7
- key=st.text_input('Please input your OpenAI key')
8
- openai.api_key=key
9
-
10
 
11
  def prompt1(company,position,round,intervier_level):
12
  prompt=f"""
@@ -85,7 +81,9 @@ def ask(prompt):
85
  st.title('InterviewPrepGPT')
86
  st.subheader('A tool using to help people prepare their interview by using gpt3.5')
87
 
88
-
 
 
89
 
90
  option = st.selectbox(
91
  'How would you like to prepare for the interview?',
@@ -179,6 +177,19 @@ if option =='Understand the requirement of a specific position':
179
 
180
  if option =='Analyze resume':
181
 
 
 
 
 
 
 
 
 
 
 
 
 
 
182
  uploaded_file = st.file_uploader("Upload your resume", type=["pdf"])
183
  if uploaded_file:
184
 
@@ -190,14 +201,6 @@ if option =='Analyze resume':
190
  for page in doc:
191
  resume += page.get_text()
192
 
193
- col31, col32,col33= st.columns(3)
194
- with col31:
195
- position=st.text_input('Input your position')
196
- with col32:
197
- dis_num=st.text_input('Input your dis_num')
198
- with col33:
199
- ad_num=st.text_input('Input your ad_num')
200
-
201
  st.write('Click button again if you want to regenerate a new ansewer.')
202
  submit_button=st.button('Submit')
203
 
 
3
  import streamlit as st
4
  import fitz
5
 
 
 
 
 
6
 
7
  def prompt1(company,position,round,intervier_level):
8
  prompt=f"""
 
81
  st.title('InterviewPrepGPT')
82
  st.subheader('A tool using to help people prepare their interview by using gpt3.5')
83
 
84
+ # environment setup
85
+ key=st.text_input('Please input your OpenAI key','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')
86
+ openai.api_key=key
87
 
88
  option = st.selectbox(
89
  'How would you like to prepare for the interview?',
 
177
 
178
  if option =='Analyze resume':
179
 
180
+ # col31, col32,col33= st.columns(3)
181
+ # with col31:
182
+ # position=st.text_input('Input your position','data engineer')
183
+ # with col32:
184
+ # dis_num=st.text_input('Input your dis_num','6')
185
+ # with col33:
186
+ # ad_num=st.text_input('Input your ad_num','4')
187
+
188
+
189
+ position=st.text_input('Input your position','data engineer')
190
+ dis_num=6
191
+ ad_num=4
192
+
193
  uploaded_file = st.file_uploader("Upload your resume", type=["pdf"])
194
  if uploaded_file:
195
 
 
201
  for page in doc:
202
  resume += page.get_text()
203
 
 
 
 
 
 
 
 
 
204
  st.write('Click button again if you want to regenerate a new ansewer.')
205
  submit_button=st.button('Submit')
206