refactor backend detection

This commit is contained in:
Vladimir Mandic
2024-06-06 20:41:10 -04:00
parent c8d6f03209
commit 5574833f0d
55 changed files with 171 additions and 170 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ class Script(scripts.Script):
return title
def show(self, is_img2img):
return is_img2img if shared.backend == shared.Backend.DIFFUSERS else False
return is_img2img if shared.native else False
def ui(self, _is_img2img):
with gr.Row():