[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
25d9cf9604
commit
f6f198fd5f
2 changed files with 2 additions and 6 deletions
|
|
@ -698,9 +698,7 @@ class SdCppDiffusionBackend:
|
|||
loading = self._loading
|
||||
if loading is None or loading.error is not None:
|
||||
return ()
|
||||
return tuple(
|
||||
r for r in (loading.repo_id, loading.base_repo, *loading.asset_repos) if r
|
||||
)
|
||||
return tuple(r for r in (loading.repo_id, loading.base_repo, *loading.asset_repos) if r)
|
||||
|
||||
# ── Generate ───────────────────────────────────────────────────────────
|
||||
|
||||
|
|
|
|||
|
|
@ -1406,9 +1406,7 @@ def test_bad_mode_strings_fail_before_eviction(fake_runtime):
|
|||
{"text_encoder_quant": "fp3"},
|
||||
):
|
||||
with pytest.raises(ValueError):
|
||||
backend.load_pipeline(
|
||||
"unsloth/Z-Image-GGUF", gguf_filename = "m.gguf", **kwargs
|
||||
)
|
||||
backend.load_pipeline("unsloth/Z-Image-GGUF", gguf_filename = "m.gguf", **kwargs)
|
||||
assert backend._state is not None
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue