Skip to content

Commit

Permalink
fixup conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
eagarvey-amd committed May 31, 2024
1 parent e41cf1a commit 1e35d0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/shark_studio/api/sd.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def shark_sd_fn_dict_input(
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.
if sd_kwargs["device"] == "":
if not sd_kwargs["device"]:
gr.Warning("No device specified. Please specify a device.")
return None, ""
if sd_kwargs["height"] not in [512, 1024]:
Expand Down

0 comments on commit 1e35d0b

Please sign in to comment.