Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -63,7 +63,7 @@ class EndpointHandler:
|
|
63 |
with torch.autocast(device):
|
64 |
outputs = self.model.generate(
|
65 |
**voice_description, prompt_input_ids=inputs.input_ids,
|
66 |
-
|
67 |
**gen_kwargs
|
68 |
)
|
69 |
|
|
|
63 |
with torch.autocast(device):
|
64 |
outputs = self.model.generate(
|
65 |
**voice_description, prompt_input_ids=inputs.input_ids,
|
66 |
+
prompt_attention_mask=inputs.attention_mask, #prompt_attention_mask=voice_description.attention_mask,
|
67 |
**gen_kwargs
|
68 |
)
|
69 |
|