enzostvs HF staff commited on
Commit
fa7e161
1 Parent(s): b162b24
Files changed (2) hide show
  1. components/form.tsx +3 -0
  2. declare.module.ts +1 -0
components/form.tsx CHANGED
@@ -1,5 +1,6 @@
1
  "use client";
2
  import Image from "next/image";
 
3
  import {
4
  AutoTokenizer,
5
  MusicgenForConditionalGeneration,
@@ -78,7 +79,9 @@ export const Form = ({ children }: { children: React.ReactNode }) => {
78
  let loaded = 0;
79
  let total = 0;
80
  for (const data of Object.values(loadProgress)) {
 
81
  loaded += data.loaded;
 
82
  total += data.total;
83
  }
84
  const progress = loaded / total;
 
1
  "use client";
2
  import Image from "next/image";
3
+ // @ts-ignore
4
  import {
5
  AutoTokenizer,
6
  MusicgenForConditionalGeneration,
 
79
  let loaded = 0;
80
  let total = 0;
81
  for (const data of Object.values(loadProgress)) {
82
+ // @ts-ignore
83
  loaded += data.loaded;
84
+ // @ts-ignore
85
  total += data.total;
86
  }
87
  const progress = loaded / total;
declare.module.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ declare module '@xenova/transformers';