mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 16:17:57 +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):
|
def load_checkpoint(checkpoint):
|
||||||
|
|
||||||
payload = {
|
payload = {
|
||||||
"sd_model_checkpoint": checkpoint
|
"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():
|
def get_samplers():
|
||||||
|
Loading…
Reference in New Issue
Block a user