Skip to content

Commit 09b4f4b

Browse files
authored
[webhooks server] rely on SPACE_ID to check if app is local or in a Sapce (#2450)
1 parent 411e378 commit 09b4f4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/huggingface_hub/_webhooks_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737

3838
_global_app: Optional["WebhooksServer"] = None
39-
_is_local = os.getenv("SYSTEM") != "spaces"
39+
_is_local = os.environ.get("SPACE_ID") is None
4040

4141

4242
@experimental

0 commit comments

Comments
 (0)