Spaces:
Sleeping
Sleeping
Commit
·
a5066a5
1
Parent(s):
aabc41a
Update app.py
Browse files
app.py
CHANGED
@@ -8,13 +8,8 @@ def transcribe(audio):
|
|
8 |
text = pipe(audio)["text"]
|
9 |
return text
|
10 |
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
outputs="text",
|
15 |
-
title="Whisper Small Chinese",
|
16 |
-
description="Realtime demo for Chinese speech recognition using a fine-tuned Whisper small model.",
|
17 |
-
)
|
18 |
|
19 |
-
iface.launch()
|
20 |
|
|
|
8 |
text = pipe(audio)["text"]
|
9 |
return text
|
10 |
|
11 |
+
mic = gr.Audio(source="microphone", type="numpy", label="Speak here...")
|
12 |
+
|
13 |
+
iface = gr.Interface(transcribe,mic,"text").launch()
|
|
|
|
|
|
|
|
|
14 |
|
|
|
15 |
|