Spaces:
Sleeping
Sleeping
Collapseruin
commited on
Commit
•
860202f
1
Parent(s):
d58dd7d
Update app.py
Browse files
app.py
CHANGED
@@ -6,9 +6,11 @@ def transcribe(audio):
|
|
6 |
text = pipe(audio)["text"]
|
7 |
return text
|
8 |
|
|
|
|
|
9 |
iface = gr.Interface(
|
10 |
fn=transcribe,
|
11 |
-
inputs=
|
12 |
outputs="text",
|
13 |
title="Whisper Small Chinese",
|
14 |
description="Realtime demo for Chinese speech recognition using a fine-tuned Whisper small model.",
|
|
|
6 |
text = pipe(audio)["text"]
|
7 |
return text
|
8 |
|
9 |
+
mic = gr.Audio(source="microphone", type="numpy", label="Speak here...")
|
10 |
+
|
11 |
iface = gr.Interface(
|
12 |
fn=transcribe,
|
13 |
+
inputs=mic,
|
14 |
outputs="text",
|
15 |
title="Whisper Small Chinese",
|
16 |
description="Realtime demo for Chinese speech recognition using a fine-tuned Whisper small model.",
|