Spaces:
Sleeping
Sleeping
Update static/index.html
Browse files- static/index.html +1 -1
static/index.html
CHANGED
|
@@ -100,7 +100,7 @@
|
|
| 100 |
resultsContainer.appendChild(resDiv);
|
| 101 |
|
| 102 |
try {
|
| 103 |
-
const response = await fetch(
|
| 104 |
method: 'POST',
|
| 105 |
body: formData
|
| 106 |
});
|
|
|
|
| 100 |
resultsContainer.appendChild(resDiv);
|
| 101 |
|
| 102 |
try {
|
| 103 |
+
const response = await fetch(`${window.location.origin}/predict`, {
|
| 104 |
method: 'POST',
|
| 105 |
body: formData
|
| 106 |
});
|