Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,6 +38,37 @@ with gr.Blocks(
|
|
| 38 |
css="""
|
| 39 |
footer {visibility: hidden}
|
| 40 |
.gradio-container .prose {display: none !important}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
"""
|
| 42 |
) as demo:
|
| 43 |
gr.Markdown("""
|
|
@@ -77,6 +108,15 @@ with gr.Blocks(
|
|
| 77 |
inputs=[ref_audio, ref_text, gen_text, remove_silence],
|
| 78 |
outputs=output_audio
|
| 79 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
|
| 81 |
if __name__ == "__main__":
|
| 82 |
demo.launch(show_api=False)
|
|
|
|
| 38 |
css="""
|
| 39 |
footer {visibility: hidden}
|
| 40 |
.gradio-container .prose {display: none !important}
|
| 41 |
+
|
| 42 |
+
/* Custom Footer */
|
| 43 |
+
.custom-footer {
|
| 44 |
+
position: fixed;
|
| 45 |
+
bottom: 0;
|
| 46 |
+
left: 0;
|
| 47 |
+
right: 0;
|
| 48 |
+
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
|
| 49 |
+
color: white;
|
| 50 |
+
text-align: center;
|
| 51 |
+
padding: 10px 0;
|
| 52 |
+
font-size: 14px;
|
| 53 |
+
z-index: 1000;
|
| 54 |
+
box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
.custom-footer a {
|
| 58 |
+
color: #ffffff;
|
| 59 |
+
text-decoration: none;
|
| 60 |
+
font-weight: bold;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
.custom-footer a:hover {
|
| 64 |
+
color: #f0f0f0;
|
| 65 |
+
text-decoration: underline;
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
/* Add margin to prevent content overlap */
|
| 69 |
+
.gradio-container {
|
| 70 |
+
margin-bottom: 60px;
|
| 71 |
+
}
|
| 72 |
"""
|
| 73 |
) as demo:
|
| 74 |
gr.Markdown("""
|
|
|
|
| 108 |
inputs=[ref_audio, ref_text, gen_text, remove_silence],
|
| 109 |
outputs=output_audio
|
| 110 |
)
|
| 111 |
+
|
| 112 |
+
# Custom Footer
|
| 113 |
+
gr.HTML("""
|
| 114 |
+
<div class="custom-footer">
|
| 115 |
+
<p>🗣️ F5-TTS by Muhammad Zameer ul Hassan |
|
| 116 |
+
Powered by F5-TTS |
|
| 117 |
+
</p>
|
| 118 |
+
</div>
|
| 119 |
+
""")
|
| 120 |
|
| 121 |
if __name__ == "__main__":
|
| 122 |
demo.launch(show_api=False)
|