mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-29 02:45:05 +08:00
API /sdapi/v1/server-reload-script-bodies
This commit is contained in:
parent
a56190cdb1
commit
60efbc4618
@ -250,6 +250,7 @@ class Api:
|
||||
self.add_api_route("/sdapi/v1/server-restart", self.restart_webui, methods=["POST"])
|
||||
self.add_api_route("/sdapi/v1/server-stop", self.stop_webui, methods=["POST"])
|
||||
self.add_api_route("/sdapi/v1/server-reload-ui", self.reload_webui, methods=["POST"])
|
||||
self.add_api_route("/sdapi/v1/server-reload-script-bodies", self.reload_script_bodies, methods=["POST"])
|
||||
|
||||
self.default_script_arg_txt2img = []
|
||||
self.default_script_arg_img2img = []
|
||||
@ -930,3 +931,7 @@ class Api:
|
||||
def reload_webui(self):
|
||||
shared.state.request_restart()
|
||||
return Response("Reloading.")
|
||||
|
||||
def reload_script_bodies(self):
|
||||
scripts.reload_script_body_only()
|
||||
return Response("Reload script bodies.")
|
||||
|
Loading…
Reference in New Issue
Block a user