-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
35 lines (32 loc) · 837 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<p class="jm"></p>
</body>
<script>
fetch("http://127.0.0.1:5000/transcribe", {
method: "post",
body: JSON.stringify({
audio_url: "https://res.cloudinary.com/dvauarkh6/video/upload/v1700954374/audio/fiule.wav",
}),
headers: {
'Content-Type': 'application/json'
// Add any other headers if needed
},
})
.then((res) => {
return res.json()
})
.then((res) => {
console.log(res);
})
.catch((er) => {
console.log(er);
});
</script>
</html>