Spaces:
Sleeping
Sleeping
Commit ·
bd43355
1
Parent(s): b34c977
fix: use window.location.origin for transcribe endpoint
Browse files- static/script.js +1 -1
static/script.js
CHANGED
|
@@ -73,7 +73,7 @@ async function handleFile(file) {
|
|
| 73 |
|
| 74 |
try {
|
| 75 |
const baseUrl = window.location.origin;
|
| 76 |
-
|
| 77 |
method: 'POST',
|
| 78 |
body: formData
|
| 79 |
});
|
|
|
|
| 73 |
|
| 74 |
try {
|
| 75 |
const baseUrl = window.location.origin;
|
| 76 |
+
const response = await fetch('transcribe', {
|
| 77 |
method: 'POST',
|
| 78 |
body: formData
|
| 79 |
});
|