We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
/api/datasets
1 parent b860c0b commit 71abda9Copy full SHA for 71abda9
promptsource/utils.py
@@ -109,6 +109,10 @@ def filter_english_datasets():
109
110
response = requests.get("https://huggingface.co/api/datasets?full=true")
111
tags = response.json()
112
+ while "next" in response.links:
113
+ # Handle pagination of `/api/datasets` endpoint
114
+ response = requests.get(response.links["next"]["url"])
115
+ tags += response.json()
116
117
for dataset in tags:
118
dataset_name = dataset["id"]
0 commit comments