mirror of
https://github.com/nod-ai/SHARK-Studio.git
synced 2026-01-09 22:07:55 -05:00
fixup conditional
This commit is contained in:
@@ -287,7 +287,7 @@ def shark_sd_fn_dict_input(
|
|||||||
sd_kwargs[key] = int(sd_kwargs[key])
|
sd_kwargs[key] = int(sd_kwargs[key])
|
||||||
|
|
||||||
# TODO: move these checks into the UI code so we don't have gradio warnings in a generalized dict input function.
|
# TODO: move these checks into the UI code so we don't have gradio warnings in a generalized dict input function.
|
||||||
if sd_kwargs["device"] == "":
|
if not sd_kwargs["device"]:
|
||||||
gr.Warning("No device specified. Please specify a device.")
|
gr.Warning("No device specified. Please specify a device.")
|
||||||
return None, ""
|
return None, ""
|
||||||
if sd_kwargs["height"] not in [512, 1024]:
|
if sd_kwargs["height"] not in [512, 1024]:
|
||||||
|
|||||||
Reference in New Issue
Block a user