Update app.py
Browse files
app.py
CHANGED
@@ -24,8 +24,10 @@ if not os.path.exists(VOCAB_PATH):
|
|
24 |
print("🔽 Downloading vocab...")
|
25 |
urllib.request.urlretrieve(VOCAB_URL, VOCAB_PATH)
|
26 |
|
27 |
-
# Load config
|
28 |
-
|
|
|
|
|
29 |
config = yaml.safe_load(f)
|
30 |
|
31 |
# Load model
|
|
|
24 |
print("🔽 Downloading vocab...")
|
25 |
urllib.request.urlretrieve(VOCAB_URL, VOCAB_PATH)
|
26 |
|
27 |
+
# Load config (updated to actual existing file)
|
28 |
+
CONFIG_PATH = "src/f5_tts/configs/F5TTS_Base.yaml"
|
29 |
+
|
30 |
+
with open(CONFIG_PATH, "r") as f:
|
31 |
config = yaml.safe_load(f)
|
32 |
|
33 |
# Load model
|