Datasets:
Sayali9141
commited on
Commit
•
bfcb48c
1
Parent(s):
6e5700c
url change
Browse files- signals.py +1 -5
signals.py
CHANGED
@@ -32,10 +32,6 @@ _LICENSE = ""
|
|
32 |
# The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
|
33 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
34 |
_URL = "https://github.com/Sayali-pingle/HuggingFace--Traffic-Image-Dataset/blob/main/camera_data.csv"
|
35 |
-
_URLS = {
|
36 |
-
"train": _URL + "train-v1.1.json",
|
37 |
-
"dev": _URL + "dev-v1.1.json",
|
38 |
-
}
|
39 |
|
40 |
# TODO: Name of the dataset usually matches the script name with CamelCase instead of snake_case
|
41 |
class TrafficImages(datasets.GeneratorBasedBuilder):
|
@@ -62,7 +58,7 @@ class TrafficImages(datasets.GeneratorBasedBuilder):
|
|
62 |
)
|
63 |
|
64 |
def _split_generators(self, dl_manager: datasets.DownloadManager) -> List[datasets.SplitGenerator]:
|
65 |
-
urls_to_download = self.
|
66 |
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
67 |
|
68 |
return [
|
|
|
32 |
# The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
|
33 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
34 |
_URL = "https://github.com/Sayali-pingle/HuggingFace--Traffic-Image-Dataset/blob/main/camera_data.csv"
|
|
|
|
|
|
|
|
|
35 |
|
36 |
# TODO: Name of the dataset usually matches the script name with CamelCase instead of snake_case
|
37 |
class TrafficImages(datasets.GeneratorBasedBuilder):
|
|
|
58 |
)
|
59 |
|
60 |
def _split_generators(self, dl_manager: datasets.DownloadManager) -> List[datasets.SplitGenerator]:
|
61 |
+
urls_to_download = self._URL
|
62 |
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
63 |
|
64 |
return [
|