Spaces:
Running
Running
Fix demo share btn
Browse files- 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
|
44 |
-
const
|
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 |
|