df
Browse files- staticfiles/did.html +12 -1
staticfiles/did.html
CHANGED
@@ -43,8 +43,19 @@
|
|
43 |
}
|
44 |
}
|
45 |
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
-
|
48 |
</script>
|
49 |
</body>
|
50 |
</html>
|
|
|
43 |
}
|
44 |
}
|
45 |
})
|
46 |
+
|
47 |
+
const sessionResponse = await fetchWithRetries(`https://api.d-id.com/talks/streams`, {
|
48 |
+
method: 'POST',
|
49 |
+
headers: {
|
50 |
+
Authorization: `Basic {5c276d9b-f99b-4e3f-b9ed-2653e7267cec19103d7a0b7358}`,
|
51 |
+
'Content-Type': 'application/json',
|
52 |
+
},
|
53 |
+
body: JSON.stringify({
|
54 |
+
source_url: `{AVATAR_IMAGE_URL}`,
|
55 |
+
}),
|
56 |
+
});
|
57 |
|
58 |
+
// miiboAvatar.autoRecognize();
|
59 |
</script>
|
60 |
</body>
|
61 |
</html>
|