belinghy commited on
Commit
222606a
1 Parent(s): b4e4b93

update demo link

Browse files
Files changed (1) hide show
  1. static/demo.min.js +5 -4
static/demo.min.js CHANGED
@@ -158,8 +158,9 @@
158
  button.onclick = async function (event) {
159
  // Prevent loading multiple instances
160
  button.onclick = null;
 
 
161
 
162
- button.innerText = "Loading Modules ~10s"
163
  await Promise.all([
164
  import("./onnx.min.js"),
165
  import("./three/build/three.module.min.js"),
@@ -172,9 +173,9 @@
172
  });
173
 
174
  const modelFiles = await Promise.all([
175
- fetch("./static/mvae.onnx").then((f) => f.arrayBuffer()),
176
- fetch("./static/target_controller.onnx").then((f) => f.arrayBuffer()),
177
- fetch("./static/joystick_controller.onnx").then((f) => f.arrayBuffer()),
178
  ]).then((files) => {
179
  return {
180
  mvae: files[0],
 
158
  button.onclick = async function (event) {
159
  // Prevent loading multiple instances
160
  button.onclick = null;
161
+ button.innerText = "Loading Modules..."
162
+ setTimeout(() => {button.innerText = "If demo is not loading, visit project website link below"}, 10000)
163
 
 
164
  await Promise.all([
165
  import("./onnx.min.js"),
166
  import("./three/build/three.module.min.js"),
 
173
  });
174
 
175
  const modelFiles = await Promise.all([
176
+ fetch("https://huggingface.co/spaces/belinghy/character-animation-motion-vaes/resolve/main/static/mvae.onnx").then((f) => f.arrayBuffer()),
177
+ fetch("https://huggingface.co/spaces/belinghy/character-animation-motion-vaes/resolve/main/static/target_controller.onnx").then((f) => f.arrayBuffer()),
178
+ fetch("https://huggingface.co/spaces/belinghy/character-animation-motion-vaes/resolve/main/static/joystick_controller.onnx").then((f) => f.arrayBuffer()),
179
  ]).then((files) => {
180
  return {
181
  mvae: files[0],