Spaces:
Sleeping
Sleeping
Salman11223
commited on
Commit
•
22599de
1
Parent(s):
17e7a64
Update app.py
Browse files
app.py
CHANGED
@@ -15,9 +15,11 @@ model_files = {
|
|
15 |
"s3fd.pth": "https://www.adrianbulat.com/downloads/python-fan/s3fd-619a316812.pth"
|
16 |
}
|
17 |
|
|
|
|
|
18 |
|
19 |
-
# Initialize TTS
|
20 |
-
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2", gpu=True)
|
21 |
|
22 |
for filename, url in model_files.items():
|
23 |
file_path = os.path.join("checkpoints" if "pth" in filename else "face_detection", filename)
|
|
|
15 |
"s3fd.pth": "https://www.adrianbulat.com/downloads/python-fan/s3fd-619a316812.pth"
|
16 |
}
|
17 |
|
18 |
+
# Confirm licensing or agreement to terms
|
19 |
+
confirm_license = input("Have you purchased a commercial license from Coqui or agree to the terms of the non-commercial CPML? (y/n): ") or "yes"
|
20 |
|
21 |
+
# Initialize TTS
|
22 |
+
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2", gpu=True).to("cuda")
|
23 |
|
24 |
for filename, url in model_files.items():
|
25 |
file_path = os.path.join("checkpoints" if "pth" in filename else "face_detection", filename)
|