Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,14 @@ example = [
|
|
| 8 |
["Utility function to calculate the precision of predictions using sklearn metrics", 65, 0.6, 42],
|
| 9 |
["Let's implement a function that calculates the size of a file called filepath", 60, 0.6, 42],
|
| 10 |
["Let's implement the Bubble Sort sorting algorithm in an auxiliary function:", 87, 0.6, 42],
|
| 11 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
# Change the model to the pre-trained model
|
| 14 |
tokenizer = AutoTokenizer.from_pretrained("codeparrot/codeparrot-small-text-to-code")
|
|
|
|
| 8 |
["Utility function to calculate the precision of predictions using sklearn metrics", 65, 0.6, 42],
|
| 9 |
["Let's implement a function that calculates the size of a file called filepath", 60, 0.6, 42],
|
| 10 |
["Let's implement the Bubble Sort sorting algorithm in an auxiliary function:", 87, 0.6, 42],
|
| 11 |
+
["Function to calculate the nth Fibonacci number.", 65, 0.6, 42],
|
| 12 |
+
["Function to calculate the factorial of a number.", 65, 0.6, 42],
|
| 13 |
+
["Function to reverse a string.", 65, 0.6, 42],
|
| 14 |
+
["Function to check if a number is prime.", 65, 0.6, 42],
|
| 15 |
+
["Function to generate the Fibonacci sequence up to the nth term.", 65, 0.6, 42],
|
| 16 |
+
["Function to generate the factorial sequence up to the nth term.", 65, 0.6, 42],
|
| 17 |
+
]
|
| 18 |
+
|
| 19 |
|
| 20 |
# Change the model to the pre-trained model
|
| 21 |
tokenizer = AutoTokenizer.from_pretrained("codeparrot/codeparrot-small-text-to-code")
|