dk-crazydiv commited on
Commit
ea3ef1b
1 Parent(s): 9777ed9

Adding downloads_last_month and library fields

Browse files
dataset_infos.json CHANGED
@@ -1 +1 @@
1
- {"default": {"description": "Metadata information of all the models available on HuggingFace's modelhub\n", "citation": "\n", "homepage": "https://huggingface.co/models", "license": "", "features": {"modelId": {"dtype": "string", "id": null, "_type": "Value"}, "lastModified": {"dtype": "string", "id": null, "_type": "Value"}, "tags": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pipeline_tag": {"dtype": "string", "id": null, "_type": "Value"}, "files": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "publishedBy": {"dtype": "string", "id": null, "_type": "Value"}, "modelCard": {"dtype": "large_string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "huggingface_modelhub", "config_name": "default", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 21457237, "num_examples": 10354, "dataset_name": "huggingface_modelhub"}}, "download_checksums": {"huggingface-modelhub.csv": {"num_bytes": 21341037, "checksum": "53d63e7c4fab45592c34bf52927e397377be731cfed82568718bcba27523d85c"}}, "download_size": 21341037, "post_processing_size": null, "dataset_size": 21457237, "size_in_bytes": 42798274}}
 
1
+ {"default": {"description": "Metadata information of all the models available on HuggingFace's modelhub\n", "citation": "\n", "homepage": "https://huggingface.co/models", "license": "", "features": {"modelId": {"dtype": "string", "id": null, "_type": "Value"}, "lastModified": {"dtype": "string", "id": null, "_type": "Value"}, "tags": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pipeline_tag": {"dtype": "string", "id": null, "_type": "Value"}, "files": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "publishedBy": {"dtype": "string", "id": null, "_type": "Value"}, "downloads_last_month": {"dtype": "int32", "id": null, "_type": "Value"}, "library": {"dtype": "string", "id": null, "_type": "Value"}, "modelCard": {"dtype": "large_string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "huggingface_modelhub", "config_name": "default", "version": {"version_str": "1.0.2", "description": null, "major": 1, "minor": 0, "patch": 2}, "splits": {"train": {"name": "train", "num_bytes": 21773558, "num_examples": 10406, "dataset_name": "huggingface_modelhub"}}, "download_checksums": {"huggingface-modelhub.csv": {"num_bytes": 21630712, "checksum": "022d13e774e8c5b5b34503aaa3485d838123e571adca89916eb1442b216e4ab6"}}, "download_size": 21630712, "post_processing_size": null, "dataset_size": 21773558, "size_in_bytes": 43404270}}
dummy/1.0.2/dummy_data.zip ADDED
Binary file (595 Bytes). View file
 
dummy/1.0.2/dummy_data.zip.lock ADDED
File without changes
huggingface-modelhub.csv CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:53d63e7c4fab45592c34bf52927e397377be731cfed82568718bcba27523d85c
3
- size 21341037
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:022d13e774e8c5b5b34503aaa3485d838123e571adca89916eb1442b216e4ab6
3
+ size 21630712
huggingface-modelhub.py CHANGED
@@ -41,7 +41,7 @@ _URL = "huggingface-modelhub.csv"
41
  class HuggingfaceModelhub(datasets.GeneratorBasedBuilder):
42
  """Metadata information of all the models available on HuggingFace's modelhub"""
43
 
44
- VERSION = datasets.Version("1.0.0")
45
 
46
  def _info(self):
47
  return datasets.DatasetInfo(
@@ -54,6 +54,8 @@ class HuggingfaceModelhub(datasets.GeneratorBasedBuilder):
54
  "pipeline_tag": datasets.Value("string"),
55
  "files": datasets.features.Sequence(datasets.Value("string")),
56
  "publishedBy": datasets.Value("string"),
 
 
57
  "modelCard": datasets.Value("large_string"),
58
  }
59
  ),
@@ -83,7 +85,6 @@ class HuggingfaceModelhub(datasets.GeneratorBasedBuilder):
83
  for id_, row in enumerate(reader):
84
  if id_ == 0:
85
  continue
86
-
87
  yield id_, {
88
  "modelId": row[0],
89
  "lastModified": row[1],
@@ -91,5 +92,7 @@ class HuggingfaceModelhub(datasets.GeneratorBasedBuilder):
91
  "pipeline_tag": row[3],
92
  "files": ast.literal_eval(row[4]),
93
  "publishedBy": row[5],
94
- "modelCard": row[6]
 
 
95
  }
 
41
  class HuggingfaceModelhub(datasets.GeneratorBasedBuilder):
42
  """Metadata information of all the models available on HuggingFace's modelhub"""
43
 
44
+ VERSION = datasets.Version("1.0.2")
45
 
46
  def _info(self):
47
  return datasets.DatasetInfo(
 
54
  "pipeline_tag": datasets.Value("string"),
55
  "files": datasets.features.Sequence(datasets.Value("string")),
56
  "publishedBy": datasets.Value("string"),
57
+ "downloads_last_month": datasets.Value("int32"),
58
+ "library": datasets.Value("string"),
59
  "modelCard": datasets.Value("large_string"),
60
  }
61
  ),
 
85
  for id_, row in enumerate(reader):
86
  if id_ == 0:
87
  continue
 
88
  yield id_, {
89
  "modelId": row[0],
90
  "lastModified": row[1],
 
92
  "pipeline_tag": row[3],
93
  "files": ast.literal_eval(row[4]),
94
  "publishedBy": row[5],
95
+ "downloads_last_month": float(row[6]) if row[6] else 0,
96
+ "library": row[7],
97
+ "modelCard": row[8]
98
  }