Spaces:
Sleeping
Sleeping
Update index.html
Browse files- index.html +1 -1
index.html
CHANGED
|
@@ -58,7 +58,7 @@
|
|
| 58 |
const response = await fetch('https://huggingface.co/spaces/omar1232/Advanced_Audio_Visualizer/api/predict', {
|
| 59 |
method: 'POST',
|
| 60 |
headers: { 'Content-Type': 'application/json' },
|
| 61 |
-
body: JSON.stringify({ fn_index: 0, data: [null, null] }) // Adjust based on Gradio API
|
| 62 |
});
|
| 63 |
const result = await response.json();
|
| 64 |
const [language, transcription, textFile] = result.data;
|
|
|
|
| 58 |
const response = await fetch('https://huggingface.co/spaces/omar1232/Advanced_Audio_Visualizer/api/predict', {
|
| 59 |
method: 'POST',
|
| 60 |
headers: { 'Content-Type': 'application/json' },
|
| 61 |
+
body: JSON.stringify({ fn_index: 0, data: [null, null] }) // Adjust fn_index based on Gradio API
|
| 62 |
});
|
| 63 |
const result = await response.json();
|
| 64 |
const [language, transcription, textFile] = result.data;
|