mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-25 09:19:23 +01:00
Fix bug with /internal/model/load (#4549)
Update shared.model_name after loading model through API call
This commit is contained in:
parent
2af7e382b1
commit
6a7cd01ebf
@ -55,6 +55,7 @@ def _load_model(data):
|
||||
setattr(shared.args, k, args[k])
|
||||
|
||||
shared.model, shared.tokenizer = load_model(model_name)
|
||||
shared.model_name = model_name
|
||||
|
||||
# Update shared.settings with custom generation defaults
|
||||
if settings:
|
||||
|
Loading…
Reference in New Issue
Block a user