ArmelR commited on
Commit
8a754c3
1 Parent(s): 39e6e4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- tokenizer = AutoTokenizer.from_pretrained("ArmelR/Instruction10K2048")
16
- model = AutoModelForCausalLM.from_pretrained("ArmelR/Instruction10K2048", trust_remote_code=True)
 
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):