Spaces:
Runtime error
Runtime error
Elvan Selvano
commited on
Commit
β’
69aef0b
1
Parent(s):
b075a88
Add new category business
Browse files
app.py
CHANGED
@@ -126,7 +126,7 @@ def main():
|
|
126 |
data = load_dataset(columns)
|
127 |
model = load_model()
|
128 |
corpus_embeddings = create_embedding(model, data, 'Previous Role')
|
129 |
-
col1, col2, col3, col4, col5, col6, _ = st.columns([1.1, 1.3, 1.6, 1.65, 1.7, 2.1, 9])
|
130 |
|
131 |
with col1:
|
132 |
data_count = get_specific_category(model, data, 'data', corpus_embeddings)
|
@@ -146,6 +146,9 @@ def main():
|
|
146 |
with col6:
|
147 |
computer_count = get_specific_category(model, data, 'engineer', corpus_embeddings)
|
148 |
computer_bt = st.button(f'Computer Science ({computer_count})')
|
|
|
|
|
|
|
149 |
|
150 |
job_title = st.text_input('Insert the job title below:', '')
|
151 |
submitted = st.button('Submit')
|
@@ -153,7 +156,9 @@ def main():
|
|
153 |
if data_bt:
|
154 |
job_title = 'data'
|
155 |
if finance_bt:
|
156 |
-
job_title = 'finance'
|
|
|
|
|
157 |
if marketing_bt:
|
158 |
job_title = 'marketing'
|
159 |
if social_media_bt:
|
@@ -163,7 +168,7 @@ def main():
|
|
163 |
if computer_bt:
|
164 |
job_title = 'engineer and developer'
|
165 |
|
166 |
-
if submitted or data_bt or finance_bt or marketing_bt or social_media_bt or arts_design_bt or computer_bt:
|
167 |
print(job_title + ',' + str(pd.Timestamp.now()))
|
168 |
st.info(f'Showing most similar results for {job_title}...')
|
169 |
result = get_similarity_score(model, data, job_title, corpus_embeddings)
|
|
|
126 |
data = load_dataset(columns)
|
127 |
model = load_model()
|
128 |
corpus_embeddings = create_embedding(model, data, 'Previous Role')
|
129 |
+
col1, col2, col3, col4, col5, col6, col7, _ = st.columns([1.1, 1.3, 1.6, 1.65, 1.7, 2.1, 2.25, 9])
|
130 |
|
131 |
with col1:
|
132 |
data_count = get_specific_category(model, data, 'data', corpus_embeddings)
|
|
|
146 |
with col6:
|
147 |
computer_count = get_specific_category(model, data, 'engineer', corpus_embeddings)
|
148 |
computer_bt = st.button(f'Computer Science ({computer_count})')
|
149 |
+
with col7:
|
150 |
+
business_count = get_specific_category(model, data, 'business and management', corpus_embeddings)
|
151 |
+
business_bt = st.button(f'Business and Management ({business_count})')
|
152 |
|
153 |
job_title = st.text_input('Insert the job title below:', '')
|
154 |
submitted = st.button('Submit')
|
|
|
156 |
if data_bt:
|
157 |
job_title = 'data'
|
158 |
if finance_bt:
|
159 |
+
job_title = 'finance and accounting'
|
160 |
+
if business_bt:
|
161 |
+
job_title = 'business and management'
|
162 |
if marketing_bt:
|
163 |
job_title = 'marketing'
|
164 |
if social_media_bt:
|
|
|
168 |
if computer_bt:
|
169 |
job_title = 'engineer and developer'
|
170 |
|
171 |
+
if submitted or data_bt or finance_bt or marketing_bt or social_media_bt or arts_design_bt or computer_bt or business_bt:
|
172 |
print(job_title + ',' + str(pd.Timestamp.now()))
|
173 |
st.info(f'Showing most similar results for {job_title}...')
|
174 |
result = get_similarity_score(model, data, job_title, corpus_embeddings)
|