File size: 422 Bytes
f6aec2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import requests
def get_column_info(hub_repo_id):
url = f"https://datasets-server.huggingface.co/info?dataset={hub_repo_id}"
response = requests.get(url)
data = response.json()
description = data.get("dataset_info").get(hub_repo_id).get("description")
features = data.get("dataset_info").get(hub_repo_id).get("features")
return description, features
get_column_info("davidberenstein1957/test")
|