setup HTML wrapper
Browse files- README.md +7 -1
- cubzh.html +39 -0
- index.html +0 -19
- style.css +0 -28
README.md
CHANGED
@@ -1,11 +1,17 @@
|
|
1 |
---
|
2 |
title: Ai Npcs
|
3 |
-
emoji:
|
4 |
colorFrom: indigo
|
5 |
colorTo: pink
|
6 |
sdk: static
|
|
|
7 |
pinned: false
|
8 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
9 |
---
|
10 |
|
11 |
# NPC Playground 🕹️🤖
|
|
|
1 |
---
|
2 |
title: Ai Npcs
|
3 |
+
emoji: 🤖
|
4 |
colorFrom: indigo
|
5 |
colorTo: pink
|
6 |
sdk: static
|
7 |
+
app_file: ./cubzh.html
|
8 |
pinned: false
|
9 |
license: mit
|
10 |
+
disable_embedding: true
|
11 |
+
custom_headers:
|
12 |
+
cross-origin-embedder-policy: require-corp
|
13 |
+
cross-origin-opener-policy: same-origin
|
14 |
+
cross-origin-resource-policy: cross-origin
|
15 |
---
|
16 |
|
17 |
# NPC Playground 🕹️🤖
|
cubzh.html
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
|
4 |
+
<head>
|
5 |
+
<meta charset="UTF-8">
|
6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7 |
+
<title>Wrapper</title>
|
8 |
+
<style>
|
9 |
+
body,
|
10 |
+
html {
|
11 |
+
margin: 0;
|
12 |
+
padding: 0;
|
13 |
+
height: 100%;
|
14 |
+
overflow: hidden;
|
15 |
+
}
|
16 |
+
|
17 |
+
.fullscreen-iframe {
|
18 |
+
position: absolute;
|
19 |
+
top: 0;
|
20 |
+
left: 0;
|
21 |
+
width: 100%;
|
22 |
+
height: 100%;
|
23 |
+
}
|
24 |
+
|
25 |
+
iframe {
|
26 |
+
width: 100%;
|
27 |
+
height: 100%;
|
28 |
+
}
|
29 |
+
</style>
|
30 |
+
</head>
|
31 |
+
|
32 |
+
<body>
|
33 |
+
<div class="fullscreen-iframe">
|
34 |
+
<iframe src="https://huggingface.cu.bzh/?script=huggingface.co/spaces/cubzh/ai-npcs" frameborder="0" allowfullscreen crossorigin allow="cross-origin-isolated">
|
35 |
+
</iframe>
|
36 |
+
</div>
|
37 |
+
</body>
|
38 |
+
|
39 |
+
</html>
|
index.html
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
<!doctype html>
|
2 |
-
<html>
|
3 |
-
<head>
|
4 |
-
<meta charset="utf-8" />
|
5 |
-
<meta name="viewport" content="width=device-width" />
|
6 |
-
<title>My static Space</title>
|
7 |
-
<link rel="stylesheet" href="style.css" />
|
8 |
-
</head>
|
9 |
-
<body>
|
10 |
-
<div class="card">
|
11 |
-
<h1>Welcome to your static Space!</h1>
|
12 |
-
<p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
|
13 |
-
<p>
|
14 |
-
Also don't forget to check the
|
15 |
-
<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
|
16 |
-
</p>
|
17 |
-
</div>
|
18 |
-
</body>
|
19 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
style.css
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
body {
|
2 |
-
padding: 2rem;
|
3 |
-
font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
|
4 |
-
}
|
5 |
-
|
6 |
-
h1 {
|
7 |
-
font-size: 16px;
|
8 |
-
margin-top: 0;
|
9 |
-
}
|
10 |
-
|
11 |
-
p {
|
12 |
-
color: rgb(107, 114, 128);
|
13 |
-
font-size: 15px;
|
14 |
-
margin-bottom: 10px;
|
15 |
-
margin-top: 5px;
|
16 |
-
}
|
17 |
-
|
18 |
-
.card {
|
19 |
-
max-width: 620px;
|
20 |
-
margin: 0 auto;
|
21 |
-
padding: 16px;
|
22 |
-
border: 1px solid lightgray;
|
23 |
-
border-radius: 16px;
|
24 |
-
}
|
25 |
-
|
26 |
-
.card p:last-child {
|
27 |
-
margin-bottom: 0;
|
28 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|