ForzaJuve1
commited on
Commit
•
a0de34a
1
Parent(s):
e12f9f6
Update Integration.py
Browse files- Integration.py +8 -9
Integration.py
CHANGED
@@ -529,16 +529,15 @@ class Euro2020Dataset(DatasetBuilder):
|
|
529 |
)
|
530 |
|
531 |
def _split_generators(self):
|
532 |
-
|
533 |
-
|
534 |
-
downloaded_file_path = "./" + "Euro2020.csv"
|
535 |
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
|
543 |
def _generate_examples(self, downloaded_file_path):
|
544 |
data = pd.read_csv(downloaded_file_path)
|
|
|
529 |
)
|
530 |
|
531 |
def _split_generators(self):
|
532 |
+
file_url = "https://huggingface.co/<whatever>/resolve/main/<Euro2020.csv>"
|
533 |
+
downloaded_file_path = dl_manager.download(file_url)
|
|
|
534 |
|
535 |
+
return [
|
536 |
+
SplitGenerator(
|
537 |
+
name="train",
|
538 |
+
gen_kwargs={"filepath": downloaded_file_path}
|
539 |
+
),
|
540 |
+
]
|
541 |
|
542 |
def _generate_examples(self, downloaded_file_path):
|
543 |
data = pd.read_csv(downloaded_file_path)
|