Spaces:
Running
Running
Zekun Wu
commited on
Commit
·
6ac2c35
1
Parent(s):
d9d604b
update
Browse files- pages/1_Injection.py +1 -1
pages/1_Injection.py
CHANGED
@@ -77,7 +77,7 @@ else:
|
|
77 |
# "HEALTHCARE", "FITNESS", "AGRICULTURE", "BPO", "SALES", "CONSULTANT", "DIGITAL-MEDIA",
|
78 |
# "AUTOMOBILE", "CHEF", "FINANCE", "APPAREL", "ENGINEERING", "ACCOUNTANT", "CONSTRUCTION",
|
79 |
# "PUBLIC-RELATIONS", "BANKING", "ARTS", "AVIATION"]
|
80 |
-
categories = df["Occupation"].unique()
|
81 |
|
82 |
st.session_state.occupation = st.selectbox("Occupation", options=categories, index=categories.index(st.session_state.occupation) if st.session_state.occupation in categories else 0)
|
83 |
|
|
|
77 |
# "HEALTHCARE", "FITNESS", "AGRICULTURE", "BPO", "SALES", "CONSULTANT", "DIGITAL-MEDIA",
|
78 |
# "AUTOMOBILE", "CHEF", "FINANCE", "APPAREL", "ENGINEERING", "ACCOUNTANT", "CONSTRUCTION",
|
79 |
# "PUBLIC-RELATIONS", "BANKING", "ARTS", "AVIATION"]
|
80 |
+
categories = list(df["Occupation"].unique())
|
81 |
|
82 |
st.session_state.occupation = st.selectbox("Occupation", options=categories, index=categories.index(st.session_state.occupation) if st.session_state.occupation in categories else 0)
|
83 |
|