Add files via upload

fix empty text error
This commit is contained in:
Fictiverse
2026-01-13 00:45:52 +01:00
committed by GitHub
parent 901c7a67e5
commit da9ccc8597
+4
View File
@@ -25,6 +25,9 @@ class TranslateLocallyNode:
return None
def translate(self, text, model):
if not text or not text.strip():
return ("",)
binary_path = self.find_binary()
if not binary_path or not os.path.isfile(binary_path):
return (f"ERROR: translateLocally.exe not found. Checked path: {binary_path}",)
@@ -46,6 +49,7 @@ class TranslateLocallyNode:
return (f"ERROR: Python exception: {e}",)
class SelectOrDownloadTranslateModelNode:
# List of all official models
MODELS = [