Skip to content

Commit

Permalink
WASM: add back @js() annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
jpohhhh committed Aug 23, 2024
1 parent ad337fc commit 3ed9765
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import 'package:ml_linalg/linalg.dart';
MsmarcoMiniLmL6V3 getMsmarcoMiniLmL6V3(String path) =>
MsmarcoMiniLmL6V3Web(path);

@JS('window.miniLmL6V2')
external JSPromise<JSAny?> sbertJs(
String modelPath, List<int> wordpieces);

Expand Down
1 change: 1 addition & 0 deletions lib/models/sileroVad/silero_vad_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import 'package:fonnx/models/sileroVad/silero_vad.dart';

SileroVad getSileroVad(String path) => SileroVadWeb(path);

@JS('window.sileroVad')
external JSPromise<JSString?> sileroVadJs(String modelPath, List<int> audioBytes, String previousStateAsJsonString);


Expand Down

0 comments on commit 3ed9765

Please sign in to comment.