Spaces:
Runtime error
Runtime error
Bug Fix
#1
by
KingNish
- opened
- app.py +1 -2
- requirements.txt +4 -1
app.py
CHANGED
@@ -35,8 +35,7 @@ def process_audio(audio, language, decoding_method):
|
|
35 |
iface = gr.Interface(
|
36 |
fn=process_audio,
|
37 |
inputs=[
|
38 |
-
gr.Audio(
|
39 |
-
gr.Audio(source="upload"),
|
40 |
gr.Dropdown(["hi", "ta", "bn", "mr", "te", "gu", "kn", "ml", "pa", "ur"], label="Select Language"),
|
41 |
gr.Radio(["ctc", "rnnt"], label="Decoding Method")
|
42 |
],
|
|
|
35 |
iface = gr.Interface(
|
36 |
fn=process_audio,
|
37 |
inputs=[
|
38 |
+
gr.Audio(type="numpy"),
|
|
|
39 |
gr.Dropdown(["hi", "ta", "bn", "mr", "te", "gu", "kn", "ml", "pa", "ur"], label="Select Language"),
|
40 |
gr.Radio(["ctc", "rnnt"], label="Decoding Method")
|
41 |
],
|
requirements.txt
CHANGED
@@ -1,3 +1,6 @@
|
|
1 |
transformers
|
2 |
torchaudio
|
3 |
-
soundfile
|
|
|
|
|
|
|
|
1 |
transformers
|
2 |
torchaudio
|
3 |
+
soundfile
|
4 |
+
onnxruntime
|
5 |
+
numpy
|
6 |
+
onnx
|