Spaces:
Runtime error
Runtime error
update app
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from transformers import pipeline
|
|
| 5 |
|
| 6 |
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 = "def print_hello_world():\n \"""Print 'Hello world' \""" "
|
| 9 |
tokenizer = AutoTokenizer.from_pretrained("lvwerra/codeparrot")
|
| 10 |
model = AutoModelForCausalLM.from_pretrained("lvwerra/codeparrot")
|
| 11 |
|
|
|
|
| 5 |
|
| 6 |
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 = [["def print_hello_world():\n \"""Print 'Hello world' \""" "]]
|
| 9 |
tokenizer = AutoTokenizer.from_pretrained("lvwerra/codeparrot")
|
| 10 |
model = AutoModelForCausalLM.from_pretrained("lvwerra/codeparrot")
|
| 11 |
|