Update app.py
Browse files
app.py
CHANGED
|
@@ -32,15 +32,18 @@ Use this space to generate long-form speech up to around ~2 minutes in length. T
|
|
| 32 |
""".strip()
|
| 33 |
|
| 34 |
# Create pipelines, downloading required files as necessary
|
|
|
|
|
|
|
|
|
|
| 35 |
hybrid_task = Task.get("speech-synthesis", model="zonos-hybrid", available_only=False)
|
| 36 |
-
hybrid_task.download_required_files(text_callback=print
|
| 37 |
hybrid_pipe = hybrid_task()
|
| 38 |
hybrid_pipe.load(allow_optional=True)
|
| 39 |
|
| 40 |
transformer_task = Task.get(
|
| 41 |
"speech-synthesis", model="zonos-transformer", available_only=False
|
| 42 |
)
|
| 43 |
-
transformer_task.download_required_files(text_callback=print
|
| 44 |
transformer_pipe = transformer_task()
|
| 45 |
|
| 46 |
if is_hf_spaces:
|
|
|
|
| 32 |
""".strip()
|
| 33 |
|
| 34 |
# Create pipelines, downloading required files as necessary
|
| 35 |
+
speech_enhancement = Task.get("speech-enhancement", available_only=False)
|
| 36 |
+
speech_enhancement.download_required_files(text_callback=print)
|
| 37 |
+
|
| 38 |
hybrid_task = Task.get("speech-synthesis", model="zonos-hybrid", available_only=False)
|
| 39 |
+
hybrid_task.download_required_files(text_callback=print)
|
| 40 |
hybrid_pipe = hybrid_task()
|
| 41 |
hybrid_pipe.load(allow_optional=True)
|
| 42 |
|
| 43 |
transformer_task = Task.get(
|
| 44 |
"speech-synthesis", model="zonos-transformer", available_only=False
|
| 45 |
)
|
| 46 |
+
transformer_task.download_required_files(text_callback=print)
|
| 47 |
transformer_pipe = transformer_task()
|
| 48 |
|
| 49 |
if is_hf_spaces:
|