mspitzna
commited on
Commit
·
a7ac9c1
1
Parent(s):
a5b9681
Update hf_hub_download calls in physicsgen.py to specify repo_type for parquet file retrieval
Browse files- physicsgen.py +4 -4
physicsgen.py
CHANGED
@@ -95,10 +95,10 @@ class MyPhysicalDataset(datasets.GeneratorBasedBuilder):
|
|
95 |
|
96 |
def _split_generators(self, dl_manager):
|
97 |
# Use hf_hub_download to fetch the parquet files directly from the Hub.
|
98 |
-
repo_id = "mspitzna/physicsgen"
|
99 |
-
train_file = hf_hub_download(repo_id=repo_id, filename=f"{self.config.data_dir}/train.parquet")
|
100 |
-
test_file = hf_hub_download(repo_id=repo_id, filename=f"{self.config.data_dir}/test.parquet")
|
101 |
-
eval_file = hf_hub_download(repo_id=repo_id, filename=f"{self.config.data_dir}/eval.parquet")
|
102 |
return [
|
103 |
datasets.SplitGenerator(
|
104 |
name=datasets.Split.TRAIN,
|
|
|
95 |
|
96 |
def _split_generators(self, dl_manager):
|
97 |
# Use hf_hub_download to fetch the parquet files directly from the Hub.
|
98 |
+
repo_id = "mspitzna/physicsgen"
|
99 |
+
train_file = hf_hub_download(repo_id=repo_id, filename=f"{self.config.data_dir}/train.parquet", repo_type="dataset")
|
100 |
+
test_file = hf_hub_download(repo_id=repo_id, filename=f"{self.config.data_dir}/test.parquet", repo_type="dataset")
|
101 |
+
eval_file = hf_hub_download(repo_id=repo_id, filename=f"{self.config.data_dir}/eval.parquet", repo_type="dataset")
|
102 |
return [
|
103 |
datasets.SplitGenerator(
|
104 |
name=datasets.Split.TRAIN,
|