innoai commited on
Commit
d81bde6
1 Parent(s): b6802e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -2
app.py CHANGED
@@ -31,9 +31,28 @@ def tts_interface(text, voice, rate, pitch):
31
  return audio, warning
32
 
33
  # Create Gradio application
 
 
34
  async def create_demo():
35
  voices = await get_voices()
36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  demo = gr.Interface(
38
  fn=tts_interface,
39
  inputs=[
@@ -47,11 +66,11 @@ async def create_demo():
47
  gr.Markdown(label="Warning", visible=False)
48
  ],
49
  title="Edge TTS Text-to-Speech",
50
- description="Convert text to speech using Microsoft Edge TTS. Adjust speech rate and pitch: 0 is default, positive values increase, negative values decrease.",
 
51
  analytics_enabled=False,
52
  allow_flagging=False
53
  )
54
-
55
  return demo
56
 
57
  # Run the application
 
31
  return audio, warning
32
 
33
  # Create Gradio application
34
+ import gradio as gr
35
+
36
  async def create_demo():
37
  voices = await get_voices()
38
 
39
+ description = """
40
+ Convert text to speech using Microsoft Edge TTS. Adjust speech rate and pitch: 0 is default, positive values increase, negative values decrease.
41
+
42
+ 🎥 **Exciting News: Introducing our Text-to-Video Converter!** 🎥
43
+
44
+ Take your content creation to the next level with our cutting-edge Text-to-Video Converter!
45
+ Transform your words into stunning, professional-quality videos in just a few clicks.
46
+
47
+ ✨ Features:
48
+ • Convert text to engaging videos with customizable visuals
49
+ • Choose from 40+ languages and 300+ voices
50
+ • Perfect for creating audiobooks, storytelling, and language learning materials
51
+ • Ideal for educators, content creators, and language enthusiasts
52
+
53
+ Ready to revolutionize your content? [Click here to try our Text-to-Video Converter now!](https://text2video.wingetgui.com/)
54
+ """
55
+
56
  demo = gr.Interface(
57
  fn=tts_interface,
58
  inputs=[
 
66
  gr.Markdown(label="Warning", visible=False)
67
  ],
68
  title="Edge TTS Text-to-Speech",
69
+ description=description,
70
+ article="Experience the power of Edge TTS for text-to-speech conversion, and explore our advanced Text-to-Video Converter for even more creative possibilities!",
71
  analytics_enabled=False,
72
  allow_flagging=False
73
  )
 
74
  return demo
75
 
76
  # Run the application