mishig HF staff commited on
Commit
4b11f38
1 Parent(s): 51499e8

Fix demo share btn

Browse files
Files changed (1) hide show
  1. share_btn.py +2 -3
share_btn.py CHANGED
@@ -40,9 +40,8 @@ share_js = """async () => {
40
 
41
  const res = await fetch(audioEl.src);
42
  const blob = await res.blob();
43
- const audioId = Date.now() % 200;
44
- const fileName = `whisper-${{audioId}}.wav`;
45
- const audioFile = new File([blob], fileName, { type: 'audio/wav' });
46
 
47
  const url = await uploadFile(audioFile);
48
 
 
40
 
41
  const res = await fetch(audioEl.src);
42
  const blob = await res.blob();
43
+ const fileName = `whisper-demo-input.webm`;
44
+ const audioFile = new File([blob], fileName, { type: 'audio/webm' });
 
45
 
46
  const url = await uploadFile(audioFile);
47