mbosse99 commited on
Commit
a56ea26
·
1 Parent(s): bc12b89

Fixing bug

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -29,6 +29,7 @@ def upload_blob(pdf_name, json_data, pdf_data_jobdescription,pdf_data_cvs):
29
  links = []
30
  names = []
31
  for i,cv in enumerate(pdf_data_cvs):
 
32
  cv_nr_for_id = i+1
33
  cv_session_state_string = "cv-"+str(cv_nr_for_id)
34
  session_state_name = st.session_state[cv_session_state_string]
@@ -114,7 +115,7 @@ with st.container():
114
  email = st.text_input("Enter the email:" , key="mail")
115
  uploaded_file_cvs = st.file_uploader("Upload the resume(s):", type=["pdf"],accept_multiple_files=True, key="cvs")
116
  for i,cv in enumerate(st.session_state["cvs"]):
117
- st.text_input(label="Enter the name of the "+str(i+1)+". CV", value=cv.name,key="cv-"+str(i+1))
118
  with st.expander("Enter up to three predefined questions if needed. Otherwise leave it blank:"):
119
  question_one = st.text_input("Enter the first question:")
120
  question_two = st.text_input("Enter the second question:")
@@ -151,6 +152,7 @@ with st.container():
151
  pdf_data_jobdescription = uploaded_file_jobdescription.read()
152
  pdf_data_cvs = []
153
  for i,cv in enumerate(st.session_state["cvs"]):
 
154
  pdf_data_cvs.append(cv.read())
155
  # pdf_data_cv = uploaded_file_cv.read()
156
 
 
29
  links = []
30
  names = []
31
  for i,cv in enumerate(pdf_data_cvs):
32
+
33
  cv_nr_for_id = i+1
34
  cv_session_state_string = "cv-"+str(cv_nr_for_id)
35
  session_state_name = st.session_state[cv_session_state_string]
 
115
  email = st.text_input("Enter the email:" , key="mail")
116
  uploaded_file_cvs = st.file_uploader("Upload the resume(s):", type=["pdf"],accept_multiple_files=True, key="cvs")
117
  for i,cv in enumerate(st.session_state["cvs"]):
118
+ st.text_input(label="Enter the name of the "+str(i+1)+". CV (File: "+cv.name+")", value=cv.name,key="cv-"+str(i+1))
119
  with st.expander("Enter up to three predefined questions if needed. Otherwise leave it blank:"):
120
  question_one = st.text_input("Enter the first question:")
121
  question_two = st.text_input("Enter the second question:")
 
152
  pdf_data_jobdescription = uploaded_file_jobdescription.read()
153
  pdf_data_cvs = []
154
  for i,cv in enumerate(st.session_state["cvs"]):
155
+ print(cv.name)
156
  pdf_data_cvs.append(cv.read())
157
  # pdf_data_cv = uploaded_file_cv.read()
158