Spaces:
Build error
Build error
Update static/frontend.js
Browse files- static/frontend.js +1 -1
static/frontend.js
CHANGED
@@ -66,7 +66,7 @@
|
|
66 |
let predictions = await fetch(final_url);
|
67 |
console.log(predictions)
|
68 |
|
69 |
-
if
|
70 |
return predictions.json()
|
71 |
} else{
|
72 |
document.getElementById("spinner").style.display = 'none';
|
|
|
66 |
let predictions = await fetch(final_url);
|
67 |
console.log(predictions)
|
68 |
|
69 |
+
if (predictions.status == 200){
|
70 |
return predictions.json()
|
71 |
} else{
|
72 |
document.getElementById("spinner").style.display = 'none';
|