Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,8 +12,9 @@ example = [
|
|
12 |
["def count_lines(filename):", 40, 0.6, 42],
|
13 |
["def count_words(filename):", 40, 0.6, 42]]
|
14 |
|
15 |
-
|
16 |
-
|
|
|
17 |
|
18 |
|
19 |
def code_generation(gen_prompt, max_tokens, temperature=0.6, seed=42):
|
|
|
12 |
["def count_lines(filename):", 40, 0.6, 42],
|
13 |
["def count_words(filename):", 40, 0.6, 42]]
|
14 |
|
15 |
+
checkpoint = "ArmelR/Instruction10K2048"
|
16 |
+
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
|
17 |
+
model = AutoModelForCausalLM.from_pretrained(checkpoint, trust_remote_code=True)
|
18 |
|
19 |
|
20 |
def code_generation(gen_prompt, max_tokens, temperature=0.6, seed=42):
|