Skip to content

Commit

Permalink
[webhooks server] rely on SPACE_ID to check if app is local or in a S…
Browse files Browse the repository at this point in the history
…apce (#2450)
  • Loading branch information
Wauplin authored Aug 14, 2024
1 parent 411e378 commit 09b4f4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/huggingface_hub/_webhooks_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@


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


@experimental
Expand Down

0 comments on commit 09b4f4b

Please sign in to comment.