andstor commited on
Commit
84b1474
1 Parent(s): 57a2140

Update the_pile_github.py

Browse files
Files changed (1) hide show
  1. the_pile_github.py +1 -1
the_pile_github.py CHANGED
@@ -251,7 +251,7 @@ class SmartContracts(datasets.GeneratorBasedBuilder):
251
  "meta": row.meta,
252
  }
253
  else:
254
- language = row.meta["language"].lower().replace(" ", "_") # e.g. "Jupyter Notebook" -> "jupyter_notebook"
255
  if language == self.config.name:
256
  yield key, {
257
  "text": row.text,
 
251
  "meta": row.meta,
252
  }
253
  else:
254
+ language = str(row.meta["language"]).lower().replace(" ", "_") # e.g. "Jupyter Notebook" -> "jupyter_notebook"
255
  if language == self.config.name:
256
  yield key, {
257
  "text": row.text,