englissi commited on
Commit
386e0da
·
verified ·
1 Parent(s): 8f8db0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -19,6 +19,7 @@ def bulgarian_tts(bulgarian_text):
19
 
20
  return output_file
21
 
 
22
  with gr.Blocks(css="""
23
  .gradio-container { font-family: 'Arial', sans-serif; }
24
  .title { text-align: center; font-size: 24px; font-weight: bold; }
@@ -26,7 +27,7 @@ with gr.Blocks(css="""
26
  .button { background-color: #4CAF50; color: white; border-radius: 8px; padding: 10px 15px; }
27
  .button:hover { background-color: #45a049; }
28
  """) as demo:
29
- gr.Markdown("""<div class='title'>🇧🇬 Bulgarian Text-to-Speech (TTS)</div>""", unsafe_allow_html=True)
30
 
31
  with gr.Row():
32
  bulgarian_input = gr.Textbox(label="Enter Bulgarian Text:", placeholder="Здравейте", elem_classes=["textbox"])
@@ -39,5 +40,4 @@ with gr.Blocks(css="""
39
  generate_button.click(bulgarian_tts, inputs=bulgarian_input, outputs=output_audio)
40
 
41
  if __name__ == "__main__":
42
- demo.launch()
43
-
 
19
 
20
  return output_file
21
 
22
+
23
  with gr.Blocks(css="""
24
  .gradio-container { font-family: 'Arial', sans-serif; }
25
  .title { text-align: center; font-size: 24px; font-weight: bold; }
 
27
  .button { background-color: #4CAF50; color: white; border-radius: 8px; padding: 10px 15px; }
28
  .button:hover { background-color: #45a049; }
29
  """) as demo:
30
+ gr.Markdown("<div class='title'>🇧🇬 Bulgarian Text-to-Speech (TTS)</div>")
31
 
32
  with gr.Row():
33
  bulgarian_input = gr.Textbox(label="Enter Bulgarian Text:", placeholder="Здравейте", elem_classes=["textbox"])
 
40
  generate_button.click(bulgarian_tts, inputs=bulgarian_input, outputs=output_audio)
41
 
42
  if __name__ == "__main__":
43
+ demo.launch()