beyoru commited on
Commit
2372150
·
verified ·
1 Parent(s): 86cc964

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -67,8 +67,8 @@ def predict(message, history, system_prompt, temperature, max_new_tokens, top_k,
67
  attention_mask = attention_mask[:, -CONTEXT_LENGTH:]
68
 
69
  generate_kwargs = dict(
70
- input_ids=input_ids.to(device),
71
- attention_mask=attention_mask.to(device),
72
  streamer=streamer,
73
  do_sample=True,
74
  temperature=temperature,
 
67
  attention_mask = attention_mask[:, -CONTEXT_LENGTH:]
68
 
69
  generate_kwargs = dict(
70
+ input_ids=input_ids,
71
+ attention_mask=attention_mask,
72
  streamer=streamer,
73
  do_sample=True,
74
  temperature=temperature,