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