nikravan commited on
Commit
3b991b6
·
verified ·
1 Parent(s): 855971e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -85,7 +85,7 @@ def predict(message, history, system_prompt, temperature, max_new_tokens, top_k,
85
  attention_mask = attention_mask[:, -CONTEXT_LENGTH:]
86
 
87
  generate_kwargs = dict(
88
- input_ids=input_ids,
89
  attention_mask=attention_mask,
90
  streamer=streamer,
91
  do_sample=True,
 
85
  attention_mask = attention_mask[:, -CONTEXT_LENGTH:]
86
 
87
  generate_kwargs = dict(
88
+ input_ids=input_ids.to(device),
89
  attention_mask=attention_mask,
90
  streamer=streamer,
91
  do_sample=True,