Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dionjwa committed Oct 18, 2022
1 parent 4f9f482 commit d20db34
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 125 deletions.
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ _browser_client_build BASE="":
@test: (_tsc "--build") build

# Build the [browser app, npm lib] for production. Called automatically by "test" and "publish"
build BASE="": _ensure_npm_modules (_tsc "--build") (_browser_client_build BASE) _npm_build
build BASE="": _ensure_npm_modules (_tsc "--build") (_browser_client_build BASE)

# Deletes: [ .certs, dist ]
@clean:
Expand Down
123 changes: 4 additions & 119 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"@chakra-ui/react": "^2.3.4",
"@emotion/react": "^11.10.4",
"@emotion/styled": "^11.10.4",
"@mediapipe/hands": "^0.4.1646424915",
"@metapages/hash-query": "^0.4.5",
"@metapages/metaframe-hook": "^1.0.11",
"@metapages/metapage": "^0.13.5",
Expand All @@ -37,14 +36,12 @@
"framer-motion": "^7.3.6",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.4.1",
"scatter-gl": "^0.0.13"
},
"devDependencies": {
"@types/node": "^12.20.10",
"@types/react": "^18.0.21",
"@types/react-dom": "^18.0.6",
"@types/react-router-dom": "^5.3.3",
"@vitejs/plugin-react": "^2.1.0",
"typescript": "^4.8.3",
"vite": "^3.1.3"
Expand Down
3 changes: 1 addition & 2 deletions src/components/HandDetectionStream.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { useEffect, useState } from "react";
import { Box } from "@chakra-ui/react";
import * as mpHands from "@mediapipe/hands";
import { MediaPipeHandsMediaPipeModelConfig } from "@tensorflow-models/hand-pose-detection";
import * as handPoseDetection from "@tensorflow-models/hand-pose-detection";
import * as tfjsWasm from "@tensorflow/tfjs-backend-wasm";
Expand Down Expand Up @@ -62,7 +61,7 @@ export const HandDetectionStream: React.FC = () => {
// @ts-ignore
runtime: "mediapipe", // or 'tfjs'
// solutionPath: "https://cdn.jsdelivr.net/npm/@mediapipe/hands",
solutionPath: `https://cdn.jsdelivr.net/npm/@mediapipe/hands@${mpHands.VERSION}`,
solutionPath: `https://cdn.jsdelivr.net/npm/@mediapipe/hands@0.4.1646424915`,
modelType: "full",
};

Expand Down
3 changes: 3 additions & 0 deletions src/lib/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This is the root file of the npm module
export type SomeMadeUpTYpe = {foo:string};
export const EXAMPLE_ROOT_NPM_EXPORT = "replace me with the actual value";

0 comments on commit d20db34

Please sign in to comment.