Ivan000 commited on
Commit
e844023
·
verified ·
1 Parent(s): 2fb5810

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -29,6 +29,8 @@ pipe = pipeline(
29
  feature_extractor=processor.feature_extractor,
30
  torch_dtype=torch_dtype,
31
  device=device,
 
 
32
  )
33
 
34
  # Define the transcription function
 
29
  feature_extractor=processor.feature_extractor,
30
  torch_dtype=torch_dtype,
31
  device=device,
32
+ chunk_length_s=30, # Process audio in 30-second chunks
33
+ return_timestamps=True # Enable timestamp prediction for long-form generation
34
  )
35
 
36
  # Define the transcription function