Update app.py
Browse files
app.py
CHANGED
|
@@ -35,8 +35,8 @@ def synthesize_speech(text):
|
|
| 35 |
# Using Gradio Blocks
|
| 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(
|
| 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")
|
|
|
|
| 35 |
# Using Gradio Blocks
|
| 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(rtl=True , text_align="right" )
|
| 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")
|