Spaces:
Paused
Paused
Update app_chat.py
Browse files- app_chat.py +1 -1
app_chat.py
CHANGED
@@ -86,7 +86,7 @@ def generate(
|
|
86 |
use_cache = True,
|
87 |
repetition_penalty=repetition_penalty,
|
88 |
stopping_criteria = stopping_criteria,
|
89 |
-
attention_mask = torch.ones_like(
|
90 |
position_ids = None,
|
91 |
kv_last_layer = None,
|
92 |
)
|
|
|
86 |
use_cache = True,
|
87 |
repetition_penalty=repetition_penalty,
|
88 |
stopping_criteria = stopping_criteria,
|
89 |
+
attention_mask = torch.ones_like(input_ids), # Add this
|
90 |
position_ids = None,
|
91 |
kv_last_layer = None,
|
92 |
)
|