mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-24 13:28:59 +01:00
Add exception handler to load_checkpoint() (#2904)
This commit is contained in:
parent
c95009d2bd
commit
5008daa0ff
@ -286,12 +286,14 @@ def get_checkpoints():
|
||||
|
||||
|
||||
def load_checkpoint(checkpoint):
|
||||
|
||||
payload = {
|
||||
"sd_model_checkpoint": checkpoint
|
||||
}
|
||||
|
||||
requests.post(url=f'{params["address"]}/sdapi/v1/options', json=payload)
|
||||
try:
|
||||
requests.post(url=f'{params["address"]}/sdapi/v1/options', json=payload)
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
def get_samplers():
|
||||
|
Loading…
Reference in New Issue
Block a user