update handler
Browse files- __pycache__/handler.cpython-38.pyc +0 -0
- handler.py +2 -1
__pycache__/handler.cpython-38.pyc
CHANGED
Binary files a/__pycache__/handler.cpython-38.pyc and b/__pycache__/handler.cpython-38.pyc differ
|
|
handler.py
CHANGED
@@ -43,5 +43,6 @@ class EndpointHandler():
|
|
43 |
|
44 |
inputs = data.pop("inputs", data)
|
45 |
with torch.cuda.amp.autocast():
|
46 |
-
prediction = self.pipeline(inputs, generate_kwargs={"forced_decoder_ids": self.forced_decoder_ids}, max_new_tokens=255)["text"]
|
|
|
47 |
return prediction
|
|
|
43 |
|
44 |
inputs = data.pop("inputs", data)
|
45 |
with torch.cuda.amp.autocast():
|
46 |
+
# prediction = self.pipeline(inputs, generate_kwargs={"forced_decoder_ids": self.forced_decoder_ids}, max_new_tokens=255)["text"]
|
47 |
+
prediction = self.pipeline(inputs, return_timestamps=False)
|
48 |
return prediction
|