Spaces:
Running
Running
Update app.py
Browse files
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("
|
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["
|
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 |
|