Spaces:
Runtime error
Runtime error
hosseinhimself
commited on
Commit
•
c9676ce
1
Parent(s):
8f55fca
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def transcribe(audio):
|
|
29 |
# Create the Gradio interface
|
30 |
iface = gr.Interface(
|
31 |
fn=transcribe,
|
32 |
-
inputs=gr.
|
33 |
outputs="text",
|
34 |
title="Persian Speech Recognition",
|
35 |
description="Transcribe Persian speech to text using Wav2Vec2-Large-XLSR-Persian-ShEMO model."
|
|
|
29 |
# Create the Gradio interface
|
30 |
iface = gr.Interface(
|
31 |
fn=transcribe,
|
32 |
+
inputs=gr.Audio(source="microphone", type="filepath"),
|
33 |
outputs="text",
|
34 |
title="Persian Speech Recognition",
|
35 |
description="Transcribe Persian speech to text using Wav2Vec2-Large-XLSR-Persian-ShEMO model."
|