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