Merge pull request #547 from galemwendar/alltalkbeta

prevent variable "model_name" from UnboundLocalError
This commit is contained in:
erew123 authored and GitHub committed 2025-03-08 06:11:02 +00:00
commit 230319c34e
1 file changed
+1
+1
View File
@@ -267,6 +267,7 @@ class tts_class:
model_files = ["model_file.pth", "model.pth"]
found_any_models = False
model_name = None
for subfolder in models_folder.iterdir():
if subfolder.is_dir():
model_name = subfolder.name