Charles1973 commited on
Commit
5bc68e8
1 Parent(s): e743472
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ model.eval()
35
  # return tokenizer.batch_decode(output)
36
  def Chat(prompt):
37
  num = 3
38
- input_ids = tokenizer.encode(prompt, return_tensors="pt",add_special_tokens=False).to(device)
39
  #with torch.no_grad():
40
  output = model.generate(
41
  input_ids,
 
35
  # return tokenizer.batch_decode(output)
36
  def Chat(prompt):
37
  num = 3
38
+ input_ids = tokenizer.encode(prompt, return_tensors="pt",add_special_tokens=False)
39
  #with torch.no_grad():
40
  output = model.generate(
41
  input_ids,