mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-21 23:57:58 +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,7 +55,8 @@ 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:
|
||||
for k in settings:
|
||||
|
Loading…
Reference in New Issue
Block a user