disabled timestamps
Browse files- handler.py +2 -2
handler.py
CHANGED
@@ -16,5 +16,5 @@ class EndpointHandler():
|
|
16 |
|
17 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
18 |
inputs = data.pop("inputs",data)
|
19 |
-
prediction = self.pipe(inputs, return_timestamps=
|
20 |
-
return prediction
|
|
|
16 |
|
17 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
18 |
inputs = data.pop("inputs",data)
|
19 |
+
prediction = self.pipe(inputs, return_timestamps=False, generate_kwargs={"language": "turkish", "task": "transcribe"})
|
20 |
+
return prediction
|