Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,8 @@ example = [
|
|
10 |
["def get_file_size(filepath):", 24, 0.6, 42],
|
11 |
["def count_lines(filename):", 40, 0.6, 42],
|
12 |
["def count_words(filename):", 40, 0.6, 42]]
|
13 |
-
tokenizer = AutoTokenizer.from_pretrained("Salesforce/codegen-
|
14 |
-
model = AutoModelForCausalLM.from_pretrained("Salesforce/codegen-
|
15 |
|
16 |
|
17 |
def code_generation(gen_prompt, max_tokens, temperature=0.6, seed=42):
|
|
|
10 |
["def get_file_size(filepath):", 24, 0.6, 42],
|
11 |
["def count_lines(filename):", 40, 0.6, 42],
|
12 |
["def count_words(filename):", 40, 0.6, 42]]
|
13 |
+
tokenizer = AutoTokenizer.from_pretrained("Salesforce/codegen-6B-mono")
|
14 |
+
model = AutoModelForCausalLM.from_pretrained("Salesforce/codegen-6B-mono")
|
15 |
|
16 |
|
17 |
def code_generation(gen_prompt, max_tokens, temperature=0.6, seed=42):
|