mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-01 01:26:03 -04:00
fix reference issue
This commit is contained in:
parent
5ee376c580
commit
2ac2913747
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user