Spaces:
Runtime error
Runtime error
update app
Browse files
app.py
CHANGED
@@ -7,7 +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 = "def print_hello_world():\n \"""Print 'Hello world' \""" "
|
9 |
tokenizer = AutoTokenizer.from_pretrained("lvwerra/codeparrot")
|
10 |
-
model = AutoModelForCausalLM.from_pretrained("lvwerra/codeparrot"
|
11 |
|
12 |
|
13 |
def code_generation(gen_prompt, strategy, max_tokens, seed=42):
|
|
|
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 |
|
12 |
|
13 |
def code_generation(gen_prompt, strategy, max_tokens, seed=42):
|