lvwerra HF Staff commited on
Commit
68f4d3c
·
verified ·
1 Parent(s): 7f2b8ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,7 +12,7 @@ config = Config()
12
  config.HTMLExporter.preprocessors = ["nbconvert.preprocessors.ExtractOutputPreprocessor"]
13
  html_exporter = HTMLExporter(config=config, template_name="classic")
14
 
15
- ds = load_dataset("data-agents/kaggle-notebooks-edu-v0")
16
  ds_out = ds.filter(lambda x: x["contains_outputs"])
17
 
18
  TMP_DIR = './tmp/'
@@ -46,7 +46,7 @@ def parse_notebook(score_options, output_options, index):
46
  else:
47
  sample = ds_out[score_options][index]
48
 
49
- notebook_string = sample["text"]
50
  notebook_response = sample["response"]
51
  notebook_id = sample["id"].split("/")[-1]
52
 
 
12
  config.HTMLExporter.preprocessors = ["nbconvert.preprocessors.ExtractOutputPreprocessor"]
13
  html_exporter = HTMLExporter(config=config, template_name="classic")
14
 
15
+ ds = load_dataset("lvwerra/jupyter-notebooks-edu-v0")
16
  ds_out = ds.filter(lambda x: x["contains_outputs"])
17
 
18
  TMP_DIR = './tmp/'
 
46
  else:
47
  sample = ds_out[score_options][index]
48
 
49
+ notebook_string = sample["content"]
50
  notebook_response = sample["response"]
51
  notebook_id = sample["id"].split("/")[-1]
52