Spaces:
Running
on
Zero
Running
on
Zero
df
Browse files- staticfiles/movie.html +46 -0
staticfiles/movie.html
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<html>
|
2 |
+
<head>
|
3 |
+
<meta charset="UTF-8">
|
4 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
5 |
+
<title>Miibo Avatar Sample</title>
|
6 |
+
<script src="https://cdn.jsdelivr.net/gh/miibo-ai/prototypes@0.0.1/miibo-avatar/miibo-avatar.min.js"></script>
|
7 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/recorderjs/0.1.0/recorder.min.js" integrity="sha512-Dc8aBUPSsnAiEtyqTYZrldxDfs2FnS8cU7BVHIJ1m5atjKrtQCoPRIn3gsVbKm2qY8NwjpTVTnawoC4XBvEZiQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
8 |
+
<style>
|
9 |
+
<!--
|
10 |
+
#my-video {
|
11 |
+
width: 512px;
|
12 |
+
height: 512px;
|
13 |
+
}
|
14 |
+
-->
|
15 |
+
</style>
|
16 |
+
</head>
|
17 |
+
<body>
|
18 |
+
<video id="my-video" autoplay></video>
|
19 |
+
|
20 |
+
<script>
|
21 |
+
const miiboAvatar = new MiiboAvatar({
|
22 |
+
container: "my-video",
|
23 |
+
option: {
|
24 |
+
miibo: {
|
25 |
+
api_key: "<miibo API-KEY>",
|
26 |
+
agent_id: "<miibo Agent-ID>",
|
27 |
+
user_id: "user",
|
28 |
+
},
|
29 |
+
d_id: {
|
30 |
+
key: "bWl5YXRha2VuOTk4QGdtYWlsLmNvbQ:49lxgWJsJTXPorzCh7O48",
|
31 |
+
service: "talks",
|
32 |
+
priority: "cost",
|
33 |
+
presenter:{
|
34 |
+
gender: "male",
|
35 |
+
image_url: "https://kenken999-fastapi-django-main-live.hf.space/static/sugi.jpg",
|
36 |
+
idle_movie: "https://github.com/miibo-takumori/resorces/raw/main/portorate-idle.mp4",
|
37 |
+
loading_movie: "https://github.com/miibo-takumori/resorces/raw/main/portorate-loading.mp4",
|
38 |
+
}
|
39 |
+
}
|
40 |
+
}
|
41 |
+
})
|
42 |
+
|
43 |
+
miiboAvatar.autoRecognize();
|
44 |
+
</script>
|
45 |
+
</body>
|
46 |
+
</html>
|