Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,9 +36,9 @@ def synthesize_speech(text):
|
|
| 36 |
with gr.Blocks(theme=gr.themes.Base()) as blocks:
|
| 37 |
gr.Markdown("# Persian Text to Speech Synthesizer")
|
| 38 |
gr.Markdown("Enter text to synthesize it into speech using Piper With Persian gyro Model")
|
| 39 |
-
input_text = gr.Textbox(label=":ورود متن")
|
| 40 |
output_audio = gr.Audio(label="Synthesized Speech", type="numpy")
|
| 41 |
-
output_text = gr.Textbox(label="Output Text", visible=False) # This is the new text output component
|
| 42 |
submit_button = gr.Button("Synthesize")
|
| 43 |
|
| 44 |
submit_button.click(synthesize_speech, inputs=input_text, outputs=[output_audio, output_text])
|
|
|
|
| 36 |
with gr.Blocks(theme=gr.themes.Base()) as blocks:
|
| 37 |
gr.Markdown("# Persian Text to Speech Synthesizer")
|
| 38 |
gr.Markdown("Enter text to synthesize it into speech using Piper With Persian gyro Model")
|
| 39 |
+
input_text = gr.Textbox(label=":ورود متن",rtl=True)
|
| 40 |
output_audio = gr.Audio(label="Synthesized Speech", type="numpy")
|
| 41 |
+
output_text = gr.Textbox(label="Output Text", visible=False, rtl=True) # This is the new text output component
|
| 42 |
submit_button = gr.Button("Synthesize")
|
| 43 |
|
| 44 |
submit_button.click(synthesize_speech, inputs=input_text, outputs=[output_audio, output_text])
|