Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,6 +15,18 @@ model_files = {
|
|
15 |
"s3fd.pth": "https://www.adrianbulat.com/downloads/python-fan/s3fd-619a316812.pth"
|
16 |
}
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
for filename, url in model_files.items():
|
19 |
file_path = os.path.join("checkpoints" if "pth" in filename else "face_detection", filename)
|
20 |
if not os.path.exists(file_path):
|
@@ -25,11 +37,11 @@ for filename, url in model_files.items():
|
|
25 |
|
26 |
|
27 |
|
28 |
-
# Confirm licensing or agreement to terms
|
29 |
-
confirm_license = input("Have you purchased a commercial license from Coqui or agree to the terms of the non-commercial CPML? (y/n): ") or "y"
|
30 |
|
31 |
-
# Initialize TTS model
|
32 |
-
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2", gpu=True)
|
33 |
|
34 |
# Translation class
|
35 |
class translation:
|
|
|
15 |
"s3fd.pth": "https://www.adrianbulat.com/downloads/python-fan/s3fd-619a316812.pth"
|
16 |
}
|
17 |
|
18 |
+
|
19 |
+
|
20 |
+
|
21 |
+
# Confirm licensing or agreement to terms
|
22 |
+
confirm_license = input("Have you purchased a commercial license from Coqui or agree to the terms of the non-commercial CPML? (y/n): ") or "y"
|
23 |
+
|
24 |
+
# Initialize TTS model
|
25 |
+
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2", gpu=True)
|
26 |
+
|
27 |
+
|
28 |
+
|
29 |
+
|
30 |
for filename, url in model_files.items():
|
31 |
file_path = os.path.join("checkpoints" if "pth" in filename else "face_detection", filename)
|
32 |
if not os.path.exists(file_path):
|
|
|
37 |
|
38 |
|
39 |
|
40 |
+
# # Confirm licensing or agreement to terms
|
41 |
+
# confirm_license = input("Have you purchased a commercial license from Coqui or agree to the terms of the non-commercial CPML? (y/n): ") or "y"
|
42 |
|
43 |
+
# # Initialize TTS model
|
44 |
+
# tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2", gpu=True)
|
45 |
|
46 |
# Translation class
|
47 |
class translation:
|