Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ import numpy as np
|
|
8 |
import re
|
9 |
import string
|
10 |
|
11 |
-
audio_input = gr.Audio(label="صوت گفتار فارسی",
|
12 |
text_output = gr.TextArea(label="متن فارسی",text_align="right",rtl=True,type="text")
|
13 |
|
14 |
processor = AutoProcessor.from_pretrained("SeyedAli/Persian-Speech-Transcription-Wav2Vec2-V1")
|
|
|
8 |
import re
|
9 |
import string
|
10 |
|
11 |
+
audio_input = gr.Audio(label="صوت گفتار فارسی",type="filepath")
|
12 |
text_output = gr.TextArea(label="متن فارسی",text_align="right",rtl=True,type="text")
|
13 |
|
14 |
processor = AutoProcessor.from_pretrained("SeyedAli/Persian-Speech-Transcription-Wav2Vec2-V1")
|