Spaces:
Running
Running
Commit
·
b2c7979
1
Parent(s):
cb787dc
- .DS_Store +0 -0
- .gitattributes +4 -0
- Build/test_generative_trains.data +3 -0
- Build/test_generative_trains.framework.js +3 -0
- Build/test_generative_trains.loader.js +3 -0
- Build/test_generative_trains.wasm +3 -0
- README.md +12 -8
- TemplateData/favicon.ico +0 -0
- TemplateData/fullscreen-button.png +0 -0
- TemplateData/style.css +105 -0
- index.html +92 -19
- logo.png +0 -0
- style.css +0 -28
.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
.gitattributes
CHANGED
|
@@ -33,3 +33,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
Build/test_generative_trains.loader.js filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
Build/test_generative_trains.wasm filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
Build/test_generative_trains.data filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
Build/test_generative_trains.framework.js filter=lfs diff=lfs merge=lfs -text
|
Build/test_generative_trains.data
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:569db8043b7422dd4b99b5c4ebfe581326147652cb5934a1034cb3a42e4193af
|
| 3 |
+
size 54655930
|
Build/test_generative_trains.framework.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4efa8ce6d5707853b351a6c262c19ecf4e49416e3824bb8b5d8122ca10b00068
|
| 3 |
+
size 444395
|
Build/test_generative_trains.loader.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:115d42660f4b50af76126f5c4ec4c0504251a531dc7054a67621c7abc71c3cd7
|
| 3 |
+
size 26521
|
Build/test_generative_trains.wasm
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:574e7c18881484001b3efd36664756e067f290eb5751d84494d8dc7fa011da53
|
| 3 |
+
size 38922269
|
README.md
CHANGED
|
@@ -1,10 +1,14 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo: green
|
| 6 |
-
sdk: static
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
-
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: "NeuralJam"
|
| 3 |
+
emoji: "🚂"
|
| 4 |
+
colorFrom: "blue"
|
| 5 |
+
colorTo: "green"
|
| 6 |
+
sdk: "static"
|
| 7 |
+
app_file: "index.html"
|
| 8 |
+
short_description: "EscapeExpress : LLM AI detective puzzle game."
|
| 9 |
+
tags:
|
| 10 |
+
- game
|
| 11 |
+
- unity
|
| 12 |
+
- ai
|
| 13 |
+
- hackathon
|
| 14 |
---
|
|
|
|
|
|
TemplateData/favicon.ico
ADDED
|
|
TemplateData/fullscreen-button.png
ADDED
|
TemplateData/style.css
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
html {
|
| 2 |
+
box-sizing: border-box;
|
| 3 |
+
}
|
| 4 |
+
*, *:before, *:after {
|
| 5 |
+
box-sizing: inherit;
|
| 6 |
+
}
|
| 7 |
+
html, body {
|
| 8 |
+
height: 100%;
|
| 9 |
+
}
|
| 10 |
+
canvas {
|
| 11 |
+
display: block;
|
| 12 |
+
}
|
| 13 |
+
body {
|
| 14 |
+
margin: 0;
|
| 15 |
+
}
|
| 16 |
+
#unity-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100%;
|
| 19 |
+
}
|
| 20 |
+
#unity-canvas {
|
| 21 |
+
width: 100%;
|
| 22 |
+
height: 100%;
|
| 23 |
+
background: #231F20;
|
| 24 |
+
}
|
| 25 |
+
#loading-cover {
|
| 26 |
+
position: absolute;
|
| 27 |
+
top: 0;
|
| 28 |
+
left: 0;
|
| 29 |
+
width: 100%;
|
| 30 |
+
height: 100%;
|
| 31 |
+
display: flex;
|
| 32 |
+
justify-content: center;
|
| 33 |
+
align-items: center;
|
| 34 |
+
}
|
| 35 |
+
#unity-loading-bar {
|
| 36 |
+
flex: 1 1 auto;
|
| 37 |
+
display: flex;
|
| 38 |
+
flex-direction: column;
|
| 39 |
+
justify-content: center;
|
| 40 |
+
align-items: center;
|
| 41 |
+
}
|
| 42 |
+
#unity-logo {
|
| 43 |
+
text-align: center;
|
| 44 |
+
}
|
| 45 |
+
#unity-logo img {
|
| 46 |
+
max-width: 80%;
|
| 47 |
+
}
|
| 48 |
+
#unity-progress-bar-empty {
|
| 49 |
+
width: 80%;
|
| 50 |
+
height: 24px;
|
| 51 |
+
margin: 10px 20px 20px 10px;
|
| 52 |
+
text-align: left;
|
| 53 |
+
border: 1px solid white;
|
| 54 |
+
padding: 2px;
|
| 55 |
+
}
|
| 56 |
+
#unity-progress-bar-full {
|
| 57 |
+
width: 0%;
|
| 58 |
+
height: 100%;
|
| 59 |
+
background: #ffd21e;
|
| 60 |
+
}
|
| 61 |
+
.light #unity-progress-bar-empty {
|
| 62 |
+
border-color: black;
|
| 63 |
+
}
|
| 64 |
+
.light #unity-progress-bar-full {
|
| 65 |
+
background: black;
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
#unity-fullscreen-button {
|
| 69 |
+
position: absolute;
|
| 70 |
+
right: 10px;
|
| 71 |
+
bottom: 10px;
|
| 72 |
+
width: 38px;
|
| 73 |
+
height: 38px;
|
| 74 |
+
background: url('fullscreen-button.png') no-repeat center;
|
| 75 |
+
background-size: contain;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
.spinner,
|
| 79 |
+
.spinner:after {
|
| 80 |
+
border-radius: 50%;
|
| 81 |
+
width: 5em;
|
| 82 |
+
height: 5em;
|
| 83 |
+
}
|
| 84 |
+
.spinner {
|
| 85 |
+
margin: 10px;
|
| 86 |
+
font-size: 10px;
|
| 87 |
+
position: relative;
|
| 88 |
+
text-indent: -9999em;
|
| 89 |
+
border-top: 1.1em solid rgba(255, 255, 255, 0.2);
|
| 90 |
+
border-right: 1.1em solid rgba(255, 255, 255, 0.2);
|
| 91 |
+
border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
|
| 92 |
+
border-left: 1.1em solid #ffffff;
|
| 93 |
+
transform: translateZ(0);
|
| 94 |
+
animation: spinner-spin 1.1s infinite linear;
|
| 95 |
+
}
|
| 96 |
+
@keyframes spinner-spin {
|
| 97 |
+
0% {
|
| 98 |
+
transform: rotate(0deg);
|
| 99 |
+
}
|
| 100 |
+
100% {
|
| 101 |
+
transform: rotate(360deg);
|
| 102 |
+
}
|
| 103 |
+
}
|
| 104 |
+
|
| 105 |
+
|
index.html
CHANGED
|
@@ -1,19 +1,92 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en-us">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8">
|
| 5 |
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
| 7 |
+
<title>NeuralJam</title>
|
| 8 |
+
<link rel="shortcut icon" href="TemplateData/favicon.ico">
|
| 9 |
+
<link rel="stylesheet" href="TemplateData/style.css">
|
| 10 |
+
</head>
|
| 11 |
+
<body class="dark">
|
| 12 |
+
<div id="unity-container" class="unity-desktop">
|
| 13 |
+
<canvas id="unity-canvas"></canvas>
|
| 14 |
+
</div>
|
| 15 |
+
<div id="loading-cover" style="display:none;">
|
| 16 |
+
<div id="unity-loading-bar">
|
| 17 |
+
<div id="unity-logo"><img src="logo.png"></div>
|
| 18 |
+
<div id="unity-progress-bar-empty" style="display: none;">
|
| 19 |
+
<div id="unity-progress-bar-full"></div>
|
| 20 |
+
</div>
|
| 21 |
+
<div class="spinner"></div>
|
| 22 |
+
</div>
|
| 23 |
+
</div>
|
| 24 |
+
<div id="unity-fullscreen-button" style="display: none;"></div>
|
| 25 |
+
<script>
|
| 26 |
+
const hideFullScreenButton = "true";
|
| 27 |
+
const buildUrl = "Build";
|
| 28 |
+
const loaderUrl = buildUrl + "/test_generative_trains.loader.js";
|
| 29 |
+
const config = {
|
| 30 |
+
dataUrl: buildUrl + "/test_generative_trains.data",
|
| 31 |
+
frameworkUrl: buildUrl + "/test_generative_trains.framework.js",
|
| 32 |
+
codeUrl: buildUrl + "/test_generative_trains.wasm",
|
| 33 |
+
streamingAssetsUrl: "StreamingAssets",
|
| 34 |
+
companyName: "NeuralJam",
|
| 35 |
+
productName: "NeuralJam",
|
| 36 |
+
productVersion: "0.1",
|
| 37 |
+
};
|
| 38 |
+
|
| 39 |
+
const container = document.querySelector("#unity-container");
|
| 40 |
+
const canvas = document.querySelector("#unity-canvas");
|
| 41 |
+
const loadingCover = document.querySelector("#loading-cover");
|
| 42 |
+
const progressBarEmpty = document.querySelector("#unity-progress-bar-empty");
|
| 43 |
+
const progressBarFull = document.querySelector("#unity-progress-bar-full");
|
| 44 |
+
const fullscreenButton = document.querySelector("#unity-fullscreen-button");
|
| 45 |
+
const spinner = document.querySelector('.spinner');
|
| 46 |
+
|
| 47 |
+
const canFullscreen = (function() {
|
| 48 |
+
for (const key of [
|
| 49 |
+
'exitFullscreen',
|
| 50 |
+
'webkitExitFullscreen',
|
| 51 |
+
'webkitCancelFullScreen',
|
| 52 |
+
'mozCancelFullScreen',
|
| 53 |
+
'msExitFullscreen',
|
| 54 |
+
]) {
|
| 55 |
+
if (key in document) {
|
| 56 |
+
return true;
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
return false;
|
| 60 |
+
}());
|
| 61 |
+
|
| 62 |
+
if (/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)) {
|
| 63 |
+
container.className = "unity-mobile";
|
| 64 |
+
config.devicePixelRatio = 1;
|
| 65 |
+
}
|
| 66 |
+
loadingCover.style.display = "";
|
| 67 |
+
|
| 68 |
+
const script = document.createElement("script");
|
| 69 |
+
script.src = loaderUrl;
|
| 70 |
+
script.onload = () => {
|
| 71 |
+
createUnityInstance(canvas, config, (progress) => {
|
| 72 |
+
spinner.style.display = "none";
|
| 73 |
+
progressBarEmpty.style.display = "";
|
| 74 |
+
progressBarFull.style.width = `${100 * progress}%`;
|
| 75 |
+
}).then((unityInstance) => {
|
| 76 |
+
loadingCover.style.display = "none";
|
| 77 |
+
if (canFullscreen) {
|
| 78 |
+
if (!hideFullScreenButton) {
|
| 79 |
+
fullscreenButton.style.display = "";
|
| 80 |
+
}
|
| 81 |
+
fullscreenButton.onclick = () => {
|
| 82 |
+
unityInstance.SetFullscreen(1);
|
| 83 |
+
};
|
| 84 |
+
}
|
| 85 |
+
}).catch((message) => {
|
| 86 |
+
alert(message);
|
| 87 |
+
});
|
| 88 |
+
};
|
| 89 |
+
document.body.appendChild(script);
|
| 90 |
+
</script>
|
| 91 |
+
</body>
|
| 92 |
+
</html>
|
logo.png
ADDED
|
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 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|