Spaces:
Runtime error
Runtime error
update app
Browse files
app.py
CHANGED
|
@@ -7,8 +7,7 @@ title = "CodeParrot Generator 🦜"
|
|
| 7 |
description = "This is a subspace to make code generation with CodeParrot, it is used in a larger space for model comparison."
|
| 8 |
example = [
|
| 9 |
["def print_hello_world():", "Sample", 8, 42],
|
| 10 |
-
["
|
| 11 |
-
["def get_file_size(filepath):", "Sample", 8, 42]]
|
| 12 |
tokenizer = AutoTokenizer.from_pretrained("lvwerra/codeparrot")
|
| 13 |
model = AutoModelForCausalLM.from_pretrained("lvwerra/codeparrot", low_cpu_mem_usage=True)
|
| 14 |
|
|
|
|
| 7 |
description = "This is a subspace to make code generation with CodeParrot, it is used in a larger space for model comparison."
|
| 8 |
example = [
|
| 9 |
["def print_hello_world():", "Sample", 8, 42],
|
| 10 |
+
["def get_file_size(filepath):", "Sample", 22, 42]]
|
|
|
|
| 11 |
tokenizer = AutoTokenizer.from_pretrained("lvwerra/codeparrot")
|
| 12 |
model = AutoModelForCausalLM.from_pretrained("lvwerra/codeparrot", low_cpu_mem_usage=True)
|
| 13 |
|