Apply Citrus theme/CSS via launch() (Gradio 6); use CPU-only torch wheel
Browse files- app.py +6 -2
- requirements.txt +2 -0
app.py
CHANGED
|
@@ -225,7 +225,7 @@ CSS = """
|
|
| 225 |
.dark .gradio-container { color: var(--body-text-color); }
|
| 226 |
"""
|
| 227 |
|
| 228 |
-
with gr.Blocks(
|
| 229 |
with gr.Column(elem_id="col-container"):
|
| 230 |
gr.Markdown(
|
| 231 |
"""
|
|
@@ -339,4 +339,8 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS, title="Pocket TTS — Farsi")
|
|
| 339 |
)
|
| 340 |
|
| 341 |
if __name__ == "__main__":
|
| 342 |
-
demo.queue(default_concurrency_limit=1).launch(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 225 |
.dark .gradio-container { color: var(--body-text-color); }
|
| 226 |
"""
|
| 227 |
|
| 228 |
+
with gr.Blocks(title="Pocket TTS — Farsi") as demo:
|
| 229 |
with gr.Column(elem_id="col-container"):
|
| 230 |
gr.Markdown(
|
| 231 |
"""
|
|
|
|
| 339 |
)
|
| 340 |
|
| 341 |
if __name__ == "__main__":
|
| 342 |
+
demo.queue(default_concurrency_limit=1).launch(
|
| 343 |
+
theme=gr.themes.Citrus(),
|
| 344 |
+
css=CSS,
|
| 345 |
+
mcp_server=True,
|
| 346 |
+
)
|
requirements.txt
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
|
|
|
|
|
| 1 |
pocket-tts==3.1.0
|
| 2 |
numpy
|
| 3 |
scipy
|
|
|
|
| 1 |
+
--extra-index-url https://download.pytorch.org/whl/cpu
|
| 2 |
+
torch==2.9.1+cpu
|
| 3 |
pocket-tts==3.1.0
|
| 4 |
numpy
|
| 5 |
scipy
|