Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,9 +7,10 @@ description = "This is a space to convert english text to Python code using with
|
|
7 |
a code generation model for Python finetuned on [github-jupyter-text](https://huggingface.co/datasets/codeparrot/github-jupyter-text) a dataset of doctrings\
|
8 |
and their Python code extracted from Jupyter notebooks."
|
9 |
example = [
|
10 |
-
["
|
11 |
-
["
|
12 |
-
["
|
|
|
13 |
|
14 |
# change model to the finetuned one
|
15 |
tokenizer = AutoTokenizer.from_pretrained("codeparrot/codeparrot-small-text-to-code")
|
|
|
7 |
a code generation model for Python finetuned on [github-jupyter-text](https://huggingface.co/datasets/codeparrot/github-jupyter-text) a dataset of doctrings\
|
8 |
and their Python code extracted from Jupyter notebooks."
|
9 |
example = [
|
10 |
+
["Utility function to compute the accuracy of predictions using metric from sklearn", 65, 0.6, 42],
|
11 |
+
["Let's implement a function that computes the size of a file called filepath", 60, 0.6, 42],
|
12 |
+
["Let's implement bubble sort in a helper function:", 87, 0.6, 42],
|
13 |
+
]
|
14 |
|
15 |
# change model to the finetuned one
|
16 |
tokenizer = AutoTokenizer.from_pretrained("codeparrot/codeparrot-small-text-to-code")
|