Skip to content

Instantly share code, notes, and snippets.

@caponetto
Created January 10, 2022 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caponetto/3e78a5d7a2089051fbe7282ae716e991 to your computer and use it in GitHub Desktop.
Save caponetto/3e78a5d7a2089051fbe7282ae716e991 to your computer and use it in GitHub Desktop.
Teachable Machine Playground (Routes.tsx)
export const routes = {
nav: {
root: { path: "/", name: "" },
home: { path: "/home", name: "Home" },
nbd: { path: "/nail-biting-detector", name: "Nail-Biting Detector" },
// Your new route goes here
},
images: {
robot: "/static/images/robot.png",
},
sounds: {
alert: "/static/sounds/alert.mp3",
},
models: {
nbd: {
modelJson: "/static/models/nail-biting-detector/model.json",
metadataJson: "/static/models/nail-biting-detector/metadata.json",
},
// Your new model goes here
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment