Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -201,8 +201,9 @@ if st.button('확인'):
|
|
201 |
|
202 |
num_ans_topk = label_tbl[topk_idx]
|
203 |
str_ans_topk = [loc_tbl['항목명'][loc_tbl['코드'] == k] for k in num_ans_topk]
|
204 |
-
percent_ans_topk =
|
205 |
|
|
|
206 |
# print(num_ans, str_ans)
|
207 |
# print(num_ans_topk)
|
208 |
|
@@ -229,7 +230,7 @@ if st.button('확인'):
|
|
229 |
percent_ans_topk_list = []
|
230 |
for i in range(k):
|
231 |
str_ans_topk_list.append(str_ans_topk[i].iloc[0])
|
232 |
-
percent_ans_topk_list.append(percent_ans_topk[i]
|
233 |
|
234 |
# print(str_ans_topk_list)
|
235 |
|
|
|
201 |
|
202 |
num_ans_topk = label_tbl[topk_idx]
|
203 |
str_ans_topk = [loc_tbl['항목명'][loc_tbl['코드'] == k] for k in num_ans_topk]
|
204 |
+
percent_ans_topk = topk_values.numpy()
|
205 |
|
206 |
+
print(percent_ans_topk)
|
207 |
# print(num_ans, str_ans)
|
208 |
# print(num_ans_topk)
|
209 |
|
|
|
230 |
percent_ans_topk_list = []
|
231 |
for i in range(k):
|
232 |
str_ans_topk_list.append(str_ans_topk[i].iloc[0])
|
233 |
+
percent_ans_topk_list.append(percent_ans_topk[i])
|
234 |
|
235 |
# print(str_ans_topk_list)
|
236 |
|