Skip to content

Commit a3f95dd

Browse files
authored
Fix default dataset. (#539)
* Fix default dataset. * Actually find the index rather than hardcode it.
1 parent 1603eb9 commit a3f95dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

promptsource/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ def get_infos(d_name):
229229
template_collection,
230230
state,
231231
)
232+
ag_news_index = dataset_list.index("ag_news")
232233

233234
#
234235
# Select a dataset - starts with ag_news
@@ -237,7 +238,7 @@ def get_infos(d_name):
237238
"Dataset",
238239
dataset_list,
239240
key="dataset_select",
240-
index=4, # AG_NEWS
241+
index=ag_news_index,
241242
help="Select the dataset to work on.",
242243
)
243244

0 commit comments

Comments
 (0)