Spaces:
Runtime error
Runtime error
Add animated version announcement for V1.0.0 in the demo interface
Browse files
app.py
CHANGED
|
@@ -385,6 +385,28 @@ with gr.Blocks(title="Kokoro TTS Demo", css=styling) as demo:
|
|
| 385 |
)
|
| 386 |
|
| 387 |
with gr.Group():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 388 |
version_dropdown = gr.Dropdown(
|
| 389 |
label="Model Version",
|
| 390 |
choices=["v0.19", "v1.0.0"],
|
|
|
|
| 385 |
)
|
| 386 |
|
| 387 |
with gr.Group():
|
| 388 |
+
gr.HTML("""
|
| 389 |
+
<div style="
|
| 390 |
+
text-align: center;
|
| 391 |
+
margin-bottom: 10px;
|
| 392 |
+
font-weight: bold;
|
| 393 |
+
color: #05d9e8;
|
| 394 |
+
text-shadow: 0 0 10px #05d9e8, 0 0 20px #05d9e8;
|
| 395 |
+
animation: glow 2s ease-in-out infinite alternate;
|
| 396 |
+
">
|
| 397 |
+
✨ Now with V1.0.0 ✨
|
| 398 |
+
</div>
|
| 399 |
+
<style>
|
| 400 |
+
@keyframes glow {
|
| 401 |
+
from {
|
| 402 |
+
text-shadow: 0 0 10px #05d9e8, 0 0 20px #05d9e8;
|
| 403 |
+
}
|
| 404 |
+
to {
|
| 405 |
+
text-shadow: 0 0 15px #05d9e8, 0 0 30px #05d9e8, 0 0 40px #05d9e8;
|
| 406 |
+
}
|
| 407 |
+
}
|
| 408 |
+
</style>
|
| 409 |
+
""")
|
| 410 |
version_dropdown = gr.Dropdown(
|
| 411 |
label="Model Version",
|
| 412 |
choices=["v0.19", "v1.0.0"],
|