1
0
mirror of https://github.com/janvarev/Irene-Voice-Assistant.git synced 2025-11-26 22:50:58 +02:00

7.5.1 - небольшой фикс для fuzzy - забыл возврат из функции

This commit is contained in:
janvarev
2023-01-24 18:28:15 +03:00
parent 01cb4279d0
commit e21cea118a
2 changed files with 3 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ def start(core:VACore):
"contextRemoteWaitForCall": False, "contextRemoteWaitForCall": False,
"tempDir": "temp", "tempDir": "temp",
"fuzzyThreshold": 0.95, "fuzzyThreshold": 0.5,
}, },
} }

View File

@@ -12,7 +12,7 @@ from jaa import JaaCore
from collections.abc import Callable from collections.abc import Callable
version = "7.5" version = "7.5.1"
# main VACore class # main VACore class
@@ -319,7 +319,7 @@ class VACore(JaaCore):
if self.plugin_options("core")["fuzzyThreshold"] < probability: if self.plugin_options("core")["fuzzyThreshold"] < probability:
next_context = context[keyall] next_context = context[keyall]
self.execute_next(rest_phrase, next_context) self.execute_next(rest_phrase, next_context)
return
# if not founded # if not founded
if self.context == None: if self.context == None: