Skip to content

Commit

Permalink
bump lib versions
Browse files Browse the repository at this point in the history
  • Loading branch information
eyaler committed Nov 29, 2024
1 parent 80849a9 commit 8960774
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ import {
} from 'https://cdn.jsdelivr.net/npm/@mediapipe/[email protected]/vision_bundle.mjs'
const mediapipe_wasm_url = 'https://cdn.jsdelivr.net/npm/@mediapipe/[email protected]/wasm'

import {AutoModel, AutoProcessor, RawImage, env as transformersEnv} from 'https://cdn.jsdelivr.net/npm/@huggingface/transformers@3.0.2/dist/transformers.min.js'
import {AutoModel, AutoProcessor, RawImage, env as transformersEnv} from 'https://cdn.jsdelivr.net/npm/@huggingface/transformers@3.1.0/dist/transformers.min.js'

import 'https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf.min.js'
import 'https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf-backend-webgpu.min.js'

import * as ort from 'https://cdn.jsdelivr.net/npm/[email protected].0/dist/ort.webgpu.min.mjs'
ort.env.wasm.wasmPaths = 'https://cdn.jsdelivr.net/npm/[email protected].0/dist/'
import * as ort from 'https://cdn.jsdelivr.net/npm/[email protected].1/dist/ort.webgpu.min.mjs'
ort.env.wasm.wasmPaths = 'https://cdn.jsdelivr.net/npm/[email protected].1/dist/'

import SwissGL from './libs/swissgl/swissgl.mjs'
import DotCamera from './models/dotcamera.js'
Expand Down Expand Up @@ -86,7 +86,7 @@ effect.addEventListener('change', e => {
}
})
document.addEventListener('keydown', e => {
if (e.altKey && (e.key == 'ArrowUp' || e.key == 'ArrowDown' || e.target != video_url && e.key == 'Enter')) {
if ((e.altKey || e.getModifierState('AltGraph')) && (e.key == 'ArrowUp' || e.key == 'ArrowDown' || e.target != video_url && e.key == 'Enter')) {
e.preventDefault()
if (e.key == 'Enter')
get_video(video_url, false)
Expand Down

0 comments on commit 8960774

Please sign in to comment.