Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -44,11 +44,12 @@ description = '''ASR with salt-mms'''
|
|
44 |
|
45 |
iface = gr.Interface(fn=transcribe_audio,
|
46 |
inputs=[
|
47 |
-
gr.Audio(source="
|
48 |
gr.Dropdown(choices=languages, label="Language", value="English")
|
49 |
],
|
50 |
outputs=gr.Textbox(label="Transcription"),
|
51 |
description=description
|
52 |
)
|
53 |
|
|
|
54 |
iface.launch()
|
|
|
44 |
|
45 |
iface = gr.Interface(fn=transcribe_audio,
|
46 |
inputs=[
|
47 |
+
gr.Audio(source="upload", type="filepath", label="Record or Upload Audio"),
|
48 |
gr.Dropdown(choices=languages, label="Language", value="English")
|
49 |
],
|
50 |
outputs=gr.Textbox(label="Transcription"),
|
51 |
description=description
|
52 |
)
|
53 |
|
54 |
+
|
55 |
iface.launch()
|