niknikita commited on
Commit
a68b645
1 Parent(s): b6cef83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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[0]))
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: