Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,6 +15,7 @@ import uvicorn
|
|
| 15 |
checkpoint_dir = "model/"
|
| 16 |
repo_id = "capleaf/viXTTS"
|
| 17 |
os.makedirs(checkpoint_dir, exist_ok=True)
|
|
|
|
| 18 |
|
| 19 |
required_files = ["model.pth", "config.json", "vocab.json", "speakers_xtts.pth"]
|
| 20 |
if not all(f in os.listdir(checkpoint_dir) for f in required_files):
|
|
|
|
| 15 |
checkpoint_dir = "model/"
|
| 16 |
repo_id = "capleaf/viXTTS"
|
| 17 |
os.makedirs(checkpoint_dir, exist_ok=True)
|
| 18 |
+
api_app = FastAPI()
|
| 19 |
|
| 20 |
required_files = ["model.pth", "config.json", "vocab.json", "speakers_xtts.pth"]
|
| 21 |
if not all(f in os.listdir(checkpoint_dir) for f in required_files):
|