Update tortoise space
Browse files- Dockerfile +2 -2
- README.md +3 -1
- app.py +2 -2
Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
# Generated at 2026-01-29T20:
|
| 2 |
#
|
| 3 |
# TorToise HuggingFace Space - Dockerfile
|
| 4 |
# Uses Docker SDK for more control over dependencies and environment
|
|
@@ -30,7 +30,7 @@ RUN pip install --no-cache-dir --upgrade pip
|
|
| 30 |
RUN pip install --no-cache-dir torch torchaudio --index-url https://download.pytorch.org/whl/cpu
|
| 31 |
|
| 32 |
# Install the external PyPI package (if specified) and the ttsdb wrapper from PyPI
|
| 33 |
-
RUN pip install --no-cache-dir ttsdb_tortoise==0.1.
|
| 34 |
|
| 35 |
# Install Gradio
|
| 36 |
RUN pip install --no-cache-dir gradio>=5.15.0
|
|
|
|
| 1 |
+
# Generated at 2026-01-29T20:46:31Z from templates/space/Dockerfile.j2
|
| 2 |
#
|
| 3 |
# TorToise HuggingFace Space - Dockerfile
|
| 4 |
# Uses Docker SDK for more control over dependencies and environment
|
|
|
|
| 30 |
RUN pip install --no-cache-dir torch torchaudio --index-url https://download.pytorch.org/whl/cpu
|
| 31 |
|
| 32 |
# Install the external PyPI package (if specified) and the ttsdb wrapper from PyPI
|
| 33 |
+
RUN pip install --no-cache-dir ttsdb_tortoise==0.1.1
|
| 34 |
|
| 35 |
# Install Gradio
|
| 36 |
RUN pip install --no-cache-dir gradio>=5.15.0
|
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
# Generated at 2026-01-29T20:
|
| 3 |
title: TorToise
|
| 4 |
emoji: 🎤
|
| 5 |
colorFrom: blue
|
|
@@ -8,6 +8,8 @@ sdk: docker
|
|
| 8 |
app_port: 7860
|
| 9 |
pinned: false
|
| 10 |
license: other
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
# TorToise Text-to-Speech
|
|
|
|
| 1 |
---
|
| 2 |
+
# Generated at 2026-01-29T20:46:31Z from templates/space/README.md.j2
|
| 3 |
title: TorToise
|
| 4 |
emoji: 🎤
|
| 5 |
colorFrom: blue
|
|
|
|
| 8 |
app_port: 7860
|
| 9 |
pinned: false
|
| 10 |
license: other
|
| 11 |
+
preload_from_hub:
|
| 12 |
+
- ttsds/tortoise
|
| 13 |
---
|
| 14 |
|
| 15 |
# TorToise Text-to-Speech
|
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
"""TorToise - HuggingFace Space Demo
|
| 2 |
|
| 3 |
-
Generated at 2026-01-29T20:
|
| 4 |
|
| 5 |
A Gradio interface for TorToise text-to-speech synthesis.
|
| 6 |
"""
|
|
@@ -16,7 +16,7 @@ from ttsdb_tortoise import TorToise
|
|
| 16 |
|
| 17 |
# Initialize model (downloads weights on first run)
|
| 18 |
MODEL_ID = os.environ.get("MODEL_ID", "ttsds/tortoise")
|
| 19 |
-
model =
|
| 20 |
|
| 21 |
def synthesize(
|
| 22 |
text: str,
|
|
|
|
| 1 |
"""TorToise - HuggingFace Space Demo
|
| 2 |
|
| 3 |
+
Generated at 2026-01-29T20:46:31Z from templates/space/app.py.j2.
|
| 4 |
|
| 5 |
A Gradio interface for TorToise text-to-speech synthesis.
|
| 6 |
"""
|
|
|
|
| 16 |
|
| 17 |
# Initialize model (downloads weights on first run)
|
| 18 |
MODEL_ID = os.environ.get("MODEL_ID", "ttsds/tortoise")
|
| 19 |
+
model = TorToise(model_id=MODEL_ID)
|
| 20 |
|
| 21 |
def synthesize(
|
| 22 |
text: str,
|