王子傲 commited on
Commit
229aa0a
1 Parent(s): c3dc4fd

fix loading

Browse files
Files changed (1) hide show
  1. roc_stories.py +1 -1
roc_stories.py CHANGED
@@ -132,7 +132,7 @@ class RocStories(datasets.GeneratorBasedBuilder):
132
  # The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
133
 
134
  for file_name in filepath:
135
- df = pd.read_csv(filepath)
136
  for index, row in df.iterrows():
137
  yield index, {
138
  "storyid": row["storyid"],
 
132
  # The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
133
 
134
  for file_name in filepath:
135
+ df = pd.read_csv(file_name)
136
  for index, row in df.iterrows():
137
  yield index, {
138
  "storyid": row["storyid"],