Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|