Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion docs/hub/datasets-editing.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Start by [creating a Hugging Face Hub account](https://huggingface.co/join) if y
## Edit using the Hub UI

> [!WARNING]
> This feature is only available for CSV datasets for now.
> This feature is only available for CSV, TSV, and Parquet datasets for now.

The Hub's web interface allows users without any technical expertise to edit a dataset.

Expand Down
37 changes: 37 additions & 0 deletions docs/hub/datasets-viewer-sql-console.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,43 @@ LIMIT 10;
```


### Saved Queries and Embeds API

You can create, update, and delete SQL Console embeds programmatically. Embeds are saved queries that can be shared via link or embedded in other pages.

**Create an embed:**
```
POST /api/datasets/{namespace}/{repo}/sql-console/embed
Content-Type: application/json
Authorization: Bearer {token}

{
"sql": "SELECT * FROM train LIMIT 10",
"title": "Sample rows",
"private": false,
"views": [{"key": "default/train", "displayName": "Train", "viewName": "train"}]
}
```

**Update an embed:**
```
PATCH /api/datasets/{namespace}/{repo}/sql-console/embed/{embed_id}
Content-Type: application/json
Authorization: Bearer {token}

{
"sql": "SELECT * FROM train LIMIT 20",
"title": "Updated title",
"private": true
}
```

**Delete an embed:**
```
DELETE /api/datasets/{namespace}/{repo}/sql-console/embed/{embed_id}
Authorization: Bearer {token}
```

### Leakage Detection

Leakage detection is the process of identifying whether data in a dataset is present in multiple splits, for example, whether the test set is present in the training set.
Expand Down
3 changes: 2 additions & 1 deletion docs/hub/pro.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ The PRO subscription unlocks essential features for serious users, including:
- Higher tier for [ZeroGPU Spaces](./spaces-zerogpu) usage
- Ability to create ZeroGPU Spaces and use [Dev Mode](./spaces-dev-mode)
- Ability to publish Social Posts and Community Blogs
- Leverage the [Data Studio](./datasets-viewer) on private datasets
- Leverage the [Data Studio](./data-studio) on private datasets
- Run and schedule serverless [CPU/GPU Jobs](./jobs)


<a href="https://huggingface.co/pro" target="_blank" class="flex justify-center">
Expand Down
Loading