Skip to content

Commit ed6fff6

Browse files
committed
changes
1 parent bb90fd8 commit ed6fff6

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

trackio/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,15 @@ def init(
214214
f"You must be logged in to Hugging Face locally when `space_id` is provided to deploy to a Space. {e}"
215215
) from e
216216

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+
217226
if space_id is not None:
218227
deploy.raise_if_space_is_frozen_for_logging(space_id)
219228

0 commit comments

Comments
 (0)