mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
refactor backend detection
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user