Spaces:
Sleeping
Sleeping
- templates/index.html +2 -2
templates/index.html
CHANGED
@@ -59,7 +59,7 @@
|
|
59 |
stopButton.disabled = false;
|
60 |
|
61 |
try {
|
62 |
-
const response = await fetch('/start_detection', {
|
63 |
method: 'POST',
|
64 |
});
|
65 |
|
@@ -94,7 +94,7 @@
|
|
94 |
stopButton.disabled = true;
|
95 |
|
96 |
try {
|
97 |
-
const response = await fetch('/stop_detection', {
|
98 |
method: 'POST',
|
99 |
});
|
100 |
|
|
|
59 |
stopButton.disabled = false;
|
60 |
|
61 |
try {
|
62 |
+
const response = await fetch('${window.location.origin}/start_detection', {
|
63 |
method: 'POST',
|
64 |
});
|
65 |
|
|
|
94 |
stopButton.disabled = true;
|
95 |
|
96 |
try {
|
97 |
+
const response = await fetch('${window.location.origin}/stop_detection', {
|
98 |
method: 'POST',
|
99 |
});
|
100 |
|