Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def format_timestamp(seconds: float, always_include_hours: bool = False, decimal
|
|
39 |
|
40 |
|
41 |
def transcribe(file, task, return_timestamps):
|
42 |
-
outputs = pipe(file, batch_size=BATCH_SIZE,
|
43 |
text = outputs["text"]
|
44 |
if return_timestamps:
|
45 |
timestamps = outputs["chunks"]
|
|
|
39 |
|
40 |
|
41 |
def transcribe(file, task, return_timestamps):
|
42 |
+
outputs = pipe(file, batch_size=BATCH_SIZE, generate_kwargs={"task": task, "language": "sr"}, return_timestamps=return_timestamps)
|
43 |
text = outputs["text"]
|
44 |
if return_timestamps:
|
45 |
timestamps = outputs["chunks"]
|