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