We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb90fd8 commit ed6fff6Copy full SHA for ed6fff6
1 file changed
trackio/__init__.py
@@ -214,6 +214,15 @@ def init(
214
f"You must be logged in to Hugging Face locally when `space_id` is provided to deploy to a Space. {e}"
215
) from e
216
217
+ if space_id is None and bucket_id is not None:
218
+ warnings.warn(
219
+ "trackio.init() has `bucket_id` set but `space_id` is None: metrics will be logged "
220
+ "locally only. Pass `space_id` to create or use a Hugging Face Space, which will be "
221
+ "attached to the Hugging Face Bucket."
222
+ UserWarning,
223
+ stacklevel=2,
224
+ )
225
+
226
if space_id is not None:
227
deploy.raise_if_space_is_frozen_for_logging(space_id)
228
0 commit comments