[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-05-25 00:36:46 +00:00
commit ec507c5da7

View file

@ -281,9 +281,7 @@ class DiffusionBackend:
# local HF cache layout (and the system username on default
# POSIX layouts) to any authenticated Studio session.
with self._lock:
gguf_basename = (
Path(self._gguf_path).name if self._gguf_path else None
)
gguf_basename = Path(self._gguf_path).name if self._gguf_path else None
return {
"is_loaded": self._pipe is not None,
"is_loading": self._loading,