Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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,
|