foobar
commited on
Commit
·
d3030a3
1
Parent(s):
cff3261
change gr.Audio to gr.inputs.Audio
Browse files- app.py +1 -1
- requirements.txt +1 -2
app.py
CHANGED
@@ -20,7 +20,7 @@ def transcribe(audio):
|
|
20 |
|
21 |
iface = gr.Interface(
|
22 |
fn=transcribe,
|
23 |
-
inputs=gr.Audio(source="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",
|
|
|
20 |
|
21 |
iface = gr.Interface(
|
22 |
fn=transcribe,
|
23 |
+
inputs=gr.inputs.Audio(source="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",
|
requirements.txt
CHANGED
@@ -1,3 +1,2 @@
|
|
1 |
git+https://github.com/huggingface/transformers
|
2 |
-
torch
|
3 |
-
gradio==3.50.2
|
|
|
1 |
git+https://github.com/huggingface/transformers
|
2 |
+
torch
|
|