jonathanjordan21 commited on
Commit
6bea07e
·
verified ·
1 Parent(s): cb5ad10

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -441,7 +441,7 @@ def respond(
441
  # else:
442
  # std = 0
443
  if n_num == 0:
444
- w_avg = np.average(scores[scores_argsort].numpy(), weights=range(len(scores)))
445
  else:
446
  w_avg = 9999
447
  #[::-1]
 
441
  # else:
442
  # std = 0
443
  if n_num == 0:
444
+ w_avg = np.average(scores[scores_argsort].numpy(), weights=range(len(scores),0,-1))
445
  else:
446
  w_avg = 9999
447
  #[::-1]