Spaces:
Runtime error
Runtime error
Commit
·
f678ed9
1
Parent(s):
abd90ce
Removed the task argument from the transcribe fn.
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def format_timestamp(seconds: float, always_include_hours: bool = False, decimal
|
|
37 |
return seconds
|
38 |
|
39 |
|
40 |
-
def transcribe(file,
|
41 |
outputs = pipe(file, batch_size=BATCH_SIZE, generate_kwargs={"task": "transcribe",
|
42 |
"language": "bengali"}, return_timestamps=return_timestamps)
|
43 |
text = outputs["text"]
|
|
|
37 |
return seconds
|
38 |
|
39 |
|
40 |
+
def transcribe(file, return_timestamps):
|
41 |
outputs = pipe(file, batch_size=BATCH_SIZE, generate_kwargs={"task": "transcribe",
|
42 |
"language": "bengali"}, return_timestamps=return_timestamps)
|
43 |
text = outputs["text"]
|