Spaces:
Runtime error
Runtime error
Commit
·
2c9209a
1
Parent(s):
090a06a
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,9 @@ import soundfile
|
|
6 |
|
7 |
SAMPLE_RATE = 16000
|
8 |
|
9 |
-
|
|
|
|
|
10 |
|
11 |
|
12 |
def transcribe(Microphone, File_Upload):
|
@@ -38,8 +40,8 @@ iface = gr.Interface(
|
|
38 |
outputs="text",
|
39 |
layout="horizontal",
|
40 |
theme="huggingface",
|
41 |
-
title="Whisper
|
42 |
-
description="Demo for
|
43 |
allow_flagging='never',
|
44 |
)
|
45 |
|
|
|
6 |
|
7 |
SAMPLE_RATE = 16000
|
8 |
|
9 |
+
checkpoint = "openai/whisper-small"
|
10 |
+
|
11 |
+
pipe = pipeline(model=checkpoint)
|
12 |
|
13 |
|
14 |
def transcribe(Microphone, File_Upload):
|
|
|
40 |
outputs="text",
|
41 |
layout="horizontal",
|
42 |
theme="huggingface",
|
43 |
+
title="Whisper Speech Recognition Demo",
|
44 |
+
description=f"Demo for speech recognition using the fine-tuned checkpoint: [{checkpoint}](https://huggingface.co/{checkpoint}).",
|
45 |
allow_flagging='never',
|
46 |
)
|
47 |
|