Spaces:
Paused
Paused
Fix Spaces deployment: add sys.path for local zipvoice package
Browse files- __pycache__/app.cpython-312.pyc +0 -0
- app.py +4 -0
- zipvoice/__pycache__/__init__.cpython-312.pyc +0 -0
- zipvoice/bin/__pycache__/infer_zipvoice.cpython-312.pyc +0 -0
- zipvoice/models/__pycache__/zipvoice.cpython-312.pyc +0 -0
- zipvoice/models/__pycache__/zipvoice_distill.cpython-312.pyc +0 -0
- zipvoice/models/modules/__pycache__/scaling.cpython-312.pyc +0 -0
- zipvoice/models/modules/__pycache__/solver.cpython-312.pyc +0 -0
- zipvoice/models/modules/__pycache__/zipformer.cpython-312.pyc +0 -0
- zipvoice/tokenizer/__pycache__/normalizer.cpython-312.pyc +0 -0
- zipvoice/tokenizer/__pycache__/tokenizer.cpython-312.pyc +0 -0
- zipvoice/utils/__pycache__/checkpoint.cpython-312.pyc +0 -0
- zipvoice/utils/__pycache__/common.cpython-312.pyc +0 -0
- zipvoice/utils/__pycache__/feature.cpython-312.pyc +0 -0
- zipvoice/utils/__pycache__/infer.cpython-312.pyc +0 -0
__pycache__/app.cpython-312.pyc
ADDED
|
Binary file (10.7 kB). View file
|
|
|
app.py
CHANGED
|
@@ -4,11 +4,15 @@ ZipVoice Gradio Web Interface for HuggingFace Spaces
|
|
| 4 |
"""
|
| 5 |
|
| 6 |
import os
|
|
|
|
| 7 |
import tempfile
|
| 8 |
import gradio as gr
|
| 9 |
import torch
|
| 10 |
from pathlib import Path
|
| 11 |
|
|
|
|
|
|
|
|
|
|
| 12 |
# Import ZipVoice components
|
| 13 |
from zipvoice.models.zipvoice import ZipVoice
|
| 14 |
from zipvoice.models.zipvoice_distill import ZipVoiceDistill
|
|
|
|
| 4 |
"""
|
| 5 |
|
| 6 |
import os
|
| 7 |
+
import sys
|
| 8 |
import tempfile
|
| 9 |
import gradio as gr
|
| 10 |
import torch
|
| 11 |
from pathlib import Path
|
| 12 |
|
| 13 |
+
# Add current directory to Python path for local zipvoice package
|
| 14 |
+
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
| 15 |
+
|
| 16 |
# Import ZipVoice components
|
| 17 |
from zipvoice.models.zipvoice import ZipVoice
|
| 18 |
from zipvoice.models.zipvoice_distill import ZipVoiceDistill
|
zipvoice/__pycache__/__init__.cpython-312.pyc
ADDED
|
Binary file (327 Bytes). View file
|
|
|
zipvoice/bin/__pycache__/infer_zipvoice.cpython-312.pyc
ADDED
|
Binary file (30.7 kB). View file
|
|
|
zipvoice/models/__pycache__/zipvoice.cpython-312.pyc
ADDED
|
Binary file (21 kB). View file
|
|
|
zipvoice/models/__pycache__/zipvoice_distill.cpython-312.pyc
ADDED
|
Binary file (2.87 kB). View file
|
|
|
zipvoice/models/modules/__pycache__/scaling.cpython-312.pyc
ADDED
|
Binary file (77 kB). View file
|
|
|
zipvoice/models/modules/__pycache__/solver.cpython-312.pyc
ADDED
|
Binary file (11 kB). View file
|
|
|
zipvoice/models/modules/__pycache__/zipformer.cpython-312.pyc
ADDED
|
Binary file (61.3 kB). View file
|
|
|
zipvoice/tokenizer/__pycache__/normalizer.cpython-312.pyc
ADDED
|
Binary file (9.41 kB). View file
|
|
|
zipvoice/tokenizer/__pycache__/tokenizer.cpython-312.pyc
ADDED
|
Binary file (28.3 kB). View file
|
|
|
zipvoice/utils/__pycache__/checkpoint.cpython-312.pyc
ADDED
|
Binary file (21.4 kB). View file
|
|
|
zipvoice/utils/__pycache__/common.cpython-312.pyc
ADDED
|
Binary file (28.9 kB). View file
|
|
|
zipvoice/utils/__pycache__/feature.cpython-312.pyc
ADDED
|
Binary file (5.25 kB). View file
|
|
|
zipvoice/utils/__pycache__/infer.cpython-312.pyc
ADDED
|
Binary file (13.2 kB). View file
|
|
|