Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -970,7 +970,7 @@ with gr.Blocks(css=css, js=js) as demo:
|
|
970 |
for (var j = i-parseInt(this.value/2); j <= i+parseInt(this.value/2); j++) {
|
971 |
if (pts_a[j]) {
|
972 |
avg += parseInt(pts_a[j]);
|
973 |
-
} else {
|
974 |
div--;
|
975 |
}
|
976 |
}
|
|
|
970 |
for (var j = i-parseInt(this.value/2); j <= i+parseInt(this.value/2); j++) {
|
971 |
if (pts_a[j]) {
|
972 |
avg += parseInt(pts_a[j]);
|
973 |
+
} else if (div > 1) {
|
974 |
div--;
|
975 |
}
|
976 |
}
|