Spaces:
Runtime error
Runtime error
gorkemgoknar
commited on
Commit
•
30fdbd5
1
Parent(s):
193db21
Update app.py
Browse files
app.py
CHANGED
@@ -41,15 +41,15 @@ DIRECT_STREAM = int(os.environ.get("DIRECT_STREAM", 0))
|
|
41 |
print("DIRECT_STREAM set to",DIRECT_STREAM)
|
42 |
|
43 |
# This will trigger downloading model
|
44 |
-
print("Downloading if not downloaded Coqui XTTS V1")
|
45 |
-
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v1")
|
46 |
del tts
|
47 |
print("XTTS downloaded")
|
48 |
|
49 |
print("Loading XTTS")
|
50 |
# Below will use model directly for inference
|
51 |
model_path = os.path.join(
|
52 |
-
get_user_data_dir("tts"), "tts_models--multilingual--multi-dataset--xtts_v1"
|
53 |
)
|
54 |
config = XttsConfig()
|
55 |
config.load_json(os.path.join(model_path, "config.json"))
|
|
|
41 |
print("DIRECT_STREAM set to",DIRECT_STREAM)
|
42 |
|
43 |
# This will trigger downloading model
|
44 |
+
print("Downloading if not downloaded Coqui XTTS V1.1")
|
45 |
+
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v1.1")
|
46 |
del tts
|
47 |
print("XTTS downloaded")
|
48 |
|
49 |
print("Loading XTTS")
|
50 |
# Below will use model directly for inference
|
51 |
model_path = os.path.join(
|
52 |
+
get_user_data_dir("tts"), "tts_models--multilingual--multi-dataset--xtts_v1.1"
|
53 |
)
|
54 |
config = XttsConfig()
|
55 |
config.load_json(os.path.join(model_path, "config.json"))
|