fix models loading problem
This commit is contained in:
parent
31dab29aa7
commit
29c3a31a5b
1 changed files with 2 additions and 1 deletions
|
|
@ -44,7 +44,8 @@ try:
|
||||||
models = json.load(open(os.path.dirname(os.path.abspath(__file__)) + "/models/" + user + ".dat"))
|
models = json.load(open(os.path.dirname(os.path.abspath(__file__)) + "/models/" + user + ".dat"))
|
||||||
|
|
||||||
# Put all models together into 1 array
|
# Put all models together into 1 array
|
||||||
encodings = [model["data"] for model in models]
|
for model in models:
|
||||||
|
encodings += model["data"]
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
sys.exit(10)
|
sys.exit(10)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue