Update app.py
Browse files
app.py
CHANGED
@@ -37,69 +37,6 @@ async def create_demo():
|
|
37 |
|
38 |
with gr.Blocks(analytics_enabled=False) as demo:
|
39 |
gr.Markdown("# ποΈ Edge TTS Text-to-Speech")
|
40 |
-
|
41 |
-
with gr.Row():
|
42 |
-
with gr.Column(scale=1):
|
43 |
-
gr.Markdown("## Text-to-Speech with Microsoft Edge TTS")
|
44 |
-
gr.Markdown("""
|
45 |
-
Convert text to speech using Microsoft Edge TTS.
|
46 |
-
Adjust speech rate and pitch: 0 is default, positive values increase, negative values decrease.
|
47 |
-
""")
|
48 |
-
|
49 |
-
gr.HTML("""
|
50 |
-
<div style="margin: 20px 0; padding: 15px; border: 1px solid #4CAF50; border-radius: 10px; background-color: #f1f8e9;">
|
51 |
-
<p style="margin-top: 0;"><b>Looking for the new version with more features?</b></p>
|
52 |
-
<p>The new version includes:</p>
|
53 |
-
<ul>
|
54 |
-
<li><b>SRT Subtitle Support</b>: Upload SRT files or input SRT format text</li>
|
55 |
-
<li><b>File Upload</b>: Easily upload TXT or SRT files</li>
|
56 |
-
<li><b>Smart Format Detection</b>: Detects plain text or SRT format</li>
|
57 |
-
<li><b>MP3 Output</b>: Generate high-quality MP3 audio</li>
|
58 |
-
</ul>
|
59 |
-
<div style="text-align: center; margin-top: 15px;">
|
60 |
-
<a href="https://text-to-speech.wingetgui.com/" target="_blank"
|
61 |
-
style="display: inline-block;
|
62 |
-
background: linear-gradient(45deg, #4CAF50, #8BC34A);
|
63 |
-
color: white;
|
64 |
-
padding: 12px 30px;
|
65 |
-
text-decoration: none;
|
66 |
-
border-radius: 30px;
|
67 |
-
font-weight: bold;
|
68 |
-
font-size: 16px;
|
69 |
-
box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
|
70 |
-
transition: all 0.3s ease;">Try New Version β</a>
|
71 |
-
</div>
|
72 |
-
</div>
|
73 |
-
""")
|
74 |
-
|
75 |
-
with gr.Column(scale=1):
|
76 |
-
gr.HTML("""
|
77 |
-
<div style="height: 100%; background-color: #f0f8ff; padding: 15px; border-radius: 10px;">
|
78 |
-
<h2 style="color: #1e90ff; margin-top: 0;">Turn Your Text Into Professional Videos!</h2>
|
79 |
-
<ul style="list-style-type: none; padding-left: 0;">
|
80 |
-
<li>β
<b>40+ languages and 300+ voices supported</b></li>
|
81 |
-
<li>β
<b>Custom backgrounds, music, and visual effects</b></li>
|
82 |
-
<li>β
<b>Create engaging video content from simple text</b></li>
|
83 |
-
<li>β
<b>Perfect for educators, content creators, and marketers</b></li>
|
84 |
-
</ul>
|
85 |
-
<div style="text-align: center; margin-top: 20px;">
|
86 |
-
<span style="font-size: 96px;">π¬</span>
|
87 |
-
<div style="margin-top: 15px;">
|
88 |
-
<a href="https://text2video.wingetgui.com/" target="_blank"
|
89 |
-
style="display: inline-block;
|
90 |
-
background: linear-gradient(45deg, #2196F3, #21CBF3);
|
91 |
-
color: white;
|
92 |
-
padding: 12px 30px;
|
93 |
-
text-decoration: none;
|
94 |
-
border-radius: 30px;
|
95 |
-
font-weight: bold;
|
96 |
-
font-size: 16px;
|
97 |
-
box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3);
|
98 |
-
transition: all 0.3s ease;">Try Text-to-Video β</a>
|
99 |
-
</div>
|
100 |
-
</div>
|
101 |
-
</div>
|
102 |
-
""")
|
103 |
|
104 |
with gr.Row():
|
105 |
with gr.Column():
|
|
|
37 |
|
38 |
with gr.Blocks(analytics_enabled=False) as demo:
|
39 |
gr.Markdown("# ποΈ Edge TTS Text-to-Speech")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
with gr.Row():
|
42 |
with gr.Column():
|