DesiredName commited on
Commit
568e01b
·
verified ·
1 Parent(s): 31c9ef8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -18,6 +18,7 @@ def llama2_chat(prompt):
18
  input_ids=inputs["input_ids"],
19
  attention_mask=inputs["attention_mask"], # Pass attention_mask!
20
  max_new_tokens=100,
 
21
  temperature=0.3
22
  )
23
  response = tokenizer.decode(output[0], skip_special_tokens=True)
 
18
  input_ids=inputs["input_ids"],
19
  attention_mask=inputs["attention_mask"], # Pass attention_mask!
20
  max_new_tokens=100,
21
+ max_length=30,
22
  temperature=0.3
23
  )
24
  response = tokenizer.decode(output[0], skip_special_tokens=True)