From 9b7646140c10c893ba97c04aebb1bc4fae85bce6 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Tue, 19 Sep 2023 13:13:24 -0700 Subject: [PATCH] Trim model path if using absolute path --- server.py | 1 + 1 file changed, 1 insertion(+) diff --git a/server.py b/server.py index ac3bcec1..fc99ef72 100644 --- a/server.py +++ b/server.py @@ -208,6 +208,7 @@ if __name__ == "__main__": p = Path(shared.model_name) if p.exists(): model_name = p.parts[-1] + shared.model_name = model_name else: model_name = shared.model_name