loubnabnl HF staff commited on
Commit
dea8a27
1 Parent(s): 8f5b0ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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
- ["implement bubble sort", 32, 0.6, 42],
11
- ["get size of a file filepath", 32, 0.6, 42],
12
- ["print hello world", 18, 0.6, 42]]
 
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")