Explorar o código

fix reference issue

rohvani %!s(int64=2) %!d(string=hai) anos
pai
achega
2ac2913747
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      modules/models.py

+ 1 - 0
modules/models.py

@@ -109,6 +109,7 @@ def load_model(model_name):
 
         # check root of models folder, and model path root
         paths = [  f"{path_to_model}/{pt_model}", f"models/{pt_model}" ]
+        pt_path = None
         for path in [ Path(p) for p in paths ]:
             if path.exists():
                 pt_path = path