Fraser-Greenlee
commited on
Commit
·
add7f53
1
Parent(s):
002508c
fix
Browse files- program_synthesis.py +2 -1
program_synthesis.py
CHANGED
|
@@ -88,10 +88,11 @@ class ProgramSynthesis(datasets.GeneratorBasedBuilder):
|
|
| 88 |
'text': infIterator(textMakeTasks),
|
| 89 |
'list': infIterator(listMakeTasks)
|
| 90 |
}
|
|
|
|
| 91 |
for key in range(_MAX_STEPS):
|
| 92 |
|
| 93 |
if self.config.name == 'all':
|
| 94 |
-
dataset_type = choice(
|
| 95 |
else:
|
| 96 |
dataset_type = self.config.name
|
| 97 |
|
|
|
|
| 88 |
'text': infIterator(textMakeTasks),
|
| 89 |
'list': infIterator(listMakeTasks)
|
| 90 |
}
|
| 91 |
+
ks = list(task_samples.keys())
|
| 92 |
for key in range(_MAX_STEPS):
|
| 93 |
|
| 94 |
if self.config.name == 'all':
|
| 95 |
+
dataset_type = choice(ks)
|
| 96 |
else:
|
| 97 |
dataset_type = self.config.name
|
| 98 |
|