davidberenstein1957's picture
feat: add basic app for query composer
f6aec2d
raw
history blame contribute delete
422 Bytes
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")