foobar
commited on
Commit
·
fb3b93d
1
Parent(s):
d3030a3
changed to gr.Audio(sources=...)
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def transcribe(audio):
|
|
20 |
|
21 |
iface = gr.Interface(
|
22 |
fn=transcribe,
|
23 |
-
inputs=gr.
|
24 |
outputs="text",
|
25 |
title="Whisper small nato phonetic alphabet",
|
26 |
description="This is a demo of the whisper model fine-tuned on the nato phonetic alphabet. Speak into the microphone",
|
@@ -28,3 +28,7 @@ iface = gr.Interface(
|
|
28 |
|
29 |
iface.launch()
|
30 |
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
iface = gr.Interface(
|
22 |
fn=transcribe,
|
23 |
+
inputs=gr.Audio(sources="microphone", type="filepath"),
|
24 |
outputs="text",
|
25 |
title="Whisper small nato phonetic alphabet",
|
26 |
description="This is a demo of the whisper model fine-tuned on the nato phonetic alphabet. Speak into the microphone",
|
|
|
28 |
|
29 |
iface.launch()
|
30 |
|
31 |
+
|
32 |
+
|
33 |
+
|
34 |
+
|