shamik-lseg commited on
Commit
f678ed9
·
1 Parent(s): abd90ce

Removed the task argument from the transcribe fn.

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, task, 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"]
 
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"]