ForzaJuve1 commited on
Commit
a0de34a
1 Parent(s): e12f9f6

Update Integration.py

Browse files
Files changed (1) hide show
  1. Integration.py +8 -9
Integration.py CHANGED
@@ -529,16 +529,15 @@ class Euro2020Dataset(DatasetBuilder):
529
  )
530
 
531
  def _split_generators(self):
532
- google_drive_link = https://drive.google.com/file/d/1RKoAQwq68LASd4ret_OKYUkF4B4m6hnu/view?usp=sharing
533
- downloaded_file = gdown.download(google_drive_link, "Euro2020.csv", quiet = False)
534
- downloaded_file_path = "./" + "Euro2020.csv"
535
 
536
- return [
537
- SplitGenerator(
538
- name="train",
539
- gen_kwargs={"filepath": downloaded_file_path}
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)