mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-01 01:26:03 -04:00
Trim model path if using absolute path
This commit is contained in:
parent
869f47fff9
commit
9b7646140c
@ -208,6 +208,7 @@ if __name__ == "__main__":
|
|||||||
p = Path(shared.model_name)
|
p = Path(shared.model_name)
|
||||||
if p.exists():
|
if p.exists():
|
||||||
model_name = p.parts[-1]
|
model_name = p.parts[-1]
|
||||||
|
shared.model_name = model_name
|
||||||
else:
|
else:
|
||||||
model_name = shared.model_name
|
model_name = shared.model_name
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user