Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ import datetime
|
|
22 |
#
|
23 |
def get_top95(y_predict, convert_target):
|
24 |
lst_labels = []
|
25 |
-
tuple_arr = tuple((idx, val) for idx, val in enumerate(y_predict
|
26 |
sort_y = sorted(tuple_arr, key=lambda x: x[1], reverse=True)
|
27 |
cumsum = 0
|
28 |
for key, prob in sort_y:
|
|
|
22 |
#
|
23 |
def get_top95(y_predict, convert_target):
|
24 |
lst_labels = []
|
25 |
+
tuple_arr = tuple((idx, val) for idx, val in enumerate(y_predict))
|
26 |
sort_y = sorted(tuple_arr, key=lambda x: x[1], reverse=True)
|
27 |
cumsum = 0
|
28 |
for key, prob in sort_y:
|