evalstate HF Staff commited on
Commit
d8f3bdb
·
verified ·
1 Parent(s): d42e4f3

Upload extract_mcp_clients.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. extract_mcp_clients.py +5 -3
extract_mcp_clients.py CHANGED
@@ -97,13 +97,15 @@ def push_to_hub(clients_list, repo_id, split=None, token=None, private=False):
97
 
98
  # Determine split for push
99
  if split:
100
- print(f"Pushing dataset to https://huggingface.co/datasets/{repo_id} (split: {split})", file=sys.stderr)
101
  else:
102
- print(f"Pushing dataset to https://huggingface.co/datasets/{repo_id}", file=sys.stderr)
103
 
104
- # Push to hub with optional split
 
105
  dataset.push_to_hub(
106
  repo_id=repo_id,
 
107
  split=split,
108
  token=token,
109
  private=private,
 
97
 
98
  # Determine split for push
99
  if split:
100
+ print(f"Pushing dataset to https://huggingface.co/datasets/{repo_id} (config: raw, split: {split})", file=sys.stderr)
101
  else:
102
+ print(f"Pushing dataset to https://huggingface.co/datasets/{repo_id} (config: raw)", file=sys.stderr)
103
 
104
+ # Push to hub with explicit config_name to avoid creating "default" config
105
+ # This ensures the data goes to the "raw" config, not a "default" config
106
  dataset.push_to_hub(
107
  repo_id=repo_id,
108
+ config_name="raw", # Explicitly set config name to avoid "default" config creation
109
  split=split,
110
  token=token,
111
  private=private,