Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions skops/hub_utils/tests/test_hf_hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,15 +433,16 @@ def test_inference(
user = client.whoami(token=HF_HUB_TOKEN)["name"]
repo_id = f"{user}/test-{uuid4()}"

push(
repo_id=repo_id,
source=destination_path,
token=HF_HUB_TOKEN,
commit_message="test message",
create_remote=True,
# api-inference doesn't support private repos for community projects.
private=False,
)
with pytest.warns(FutureWarning, match="Creating repos on hf.co is subject"):
push(
repo_id=repo_id,
source=destination_path,
token=HF_HUB_TOKEN,
commit_message="test message",
create_remote=True,
# api-inference doesn't support private repos for community projects.
private=False,
)

X_test = data.data.head(5)
y_pred = model.predict(X_test)
Expand Down