Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -105,11 +105,13 @@ css = """
|
|
| 105 |
.jp-btn { background: #f8fafc !important; border: 1px solid #cbd5e1 !important; color: #475569 !important; font-weight: 700 !important; border-radius: 10px !important; margin-bottom: 10px; font-size: 12px !important; width: 100%; }
|
| 106 |
.gen-btn { background: #1299ff !important; color: white !important; font-weight: 700 !important; border-radius: 12px !important; height: 45px !important; width: 100%; border: none !important; cursor: pointer; }
|
| 107 |
.credit-footer { margin-top: 25px; padding: 15px; background: white; border-radius: 12px; text-align: center; border-bottom: 4px solid #1299ff; color: #94a3b8; font-weight: 700; font-size: 12px; letter-spacing: 2px; }
|
|
|
|
|
|
|
|
|
|
| 108 |
"""
|
| 109 |
|
| 110 |
# --- 7. GRADIO INTERFACE ---
|
| 111 |
-
|
| 112 |
-
with gr.Blocks() as app:
|
| 113 |
with gr.Column(elem_classes="slim-card"):
|
| 114 |
gr.HTML(f"""
|
| 115 |
<div class="ba-header-container">
|
|
@@ -172,9 +174,9 @@ with gr.Blocks() as app:
|
|
| 172 |
gr.HTML("""<div class="credit-footer">🥒 CREATED BY MUTSUMI 🥒</div>""")
|
| 173 |
|
| 174 |
if __name__ == "__main__":
|
| 175 |
-
#
|
| 176 |
-
app.queue().launch(
|
| 177 |
server_name="0.0.0.0",
|
| 178 |
-
server_port=7860,
|
| 179 |
-
|
| 180 |
)
|
|
|
|
| 105 |
.jp-btn { background: #f8fafc !important; border: 1px solid #cbd5e1 !important; color: #475569 !important; font-weight: 700 !important; border-radius: 10px !important; margin-bottom: 10px; font-size: 12px !important; width: 100%; }
|
| 106 |
.gen-btn { background: #1299ff !important; color: white !important; font-weight: 700 !important; border-radius: 12px !important; height: 45px !important; width: 100%; border: none !important; cursor: pointer; }
|
| 107 |
.credit-footer { margin-top: 25px; padding: 15px; background: white; border-radius: 12px; text-align: center; border-bottom: 4px solid #1299ff; color: #94a3b8; font-weight: 700; font-size: 12px; letter-spacing: 2px; }
|
| 108 |
+
|
| 109 |
+
/* Animasi Loading Gradio */
|
| 110 |
+
#loading-overlay { background-color: rgba(18, 153, 255, 0.9) !important; }
|
| 111 |
"""
|
| 112 |
|
| 113 |
# --- 7. GRADIO INTERFACE ---
|
| 114 |
+
with gr.Blocks(title="Project Sekai TTS", css=css) as app:
|
|
|
|
| 115 |
with gr.Column(elem_classes="slim-card"):
|
| 116 |
gr.HTML(f"""
|
| 117 |
<div class="ba-header-container">
|
|
|
|
| 174 |
gr.HTML("""<div class="credit-footer">🥒 CREATED BY MUTSUMI 🥒</div>""")
|
| 175 |
|
| 176 |
if __name__ == "__main__":
|
| 177 |
+
# app.queue() mengaktifkan generator status dan loading bar
|
| 178 |
+
app.queue(default_concurrency_limit=10).launch(
|
| 179 |
server_name="0.0.0.0",
|
| 180 |
+
server_port=7860,
|
| 181 |
+
show_error=True
|
| 182 |
)
|