Test around cuda for non-cuda users

- made logic for model loading on non-cuda systems
- split requirements files into nvidia and other
- updated other files as necessary
This commit is contained in:
erew123 authored and GitHub committed 2023-12-10 10:48:48 +00:00
1 parent 9927b51622
commit 5124c6c6b3
5 files changed
+71 -41

No files matched your search

+3 -3
View File
@@ -44,8 +44,8 @@ else:
f"[{params['branding']}Startup] \033[91mWarning\033[0m API Local and XTTSv2 Local will error unless this is corrected."
)
# Read the version specifier from requirements.txt
with open(this_dir / "requirements.txt", "r") as req_file:
# Read the version specifier from requirements_nvidia.txt
with open(this_dir / "requirements_nvidia.txt", "r") as req_file:
requirements = req_file.readlines()
tts_version_required = None
@@ -56,7 +56,7 @@ for req in requirements:
if tts_version_required is None:
raise ValueError(
f"[{params['branding']}Startup] \033[91mWarning\033[0m Could not find TTS version specifier in requirements.txt"
f"[{params['branding']}Startup] \033[91mWarning\033[0m Could not find TTS version specifier in requirements_nvidia.txt"
)