Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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]
|