Spaces:
Sleeping
Sleeping
Update app/processing.py
Browse files- app/processing.py +1 -1
app/processing.py
CHANGED
|
@@ -88,7 +88,7 @@ async def run_pipeline(task_id: str, file_path: Path, tasks_db: dict):
|
|
| 88 |
logger.info(f"Starting pipeline for task {task_id} with file {file_path}")
|
| 89 |
|
| 90 |
# Make chunk duration configurable via environment variable, default to 3 minutes
|
| 91 |
-
CHUNK_DURATION_S = int(os.getenv("CHUNK_DURATION_S",
|
| 92 |
|
| 93 |
sr = librosa.get_samplerate(str(file_path))
|
| 94 |
stream = librosa.stream(
|
|
|
|
| 88 |
logger.info(f"Starting pipeline for task {task_id} with file {file_path}")
|
| 89 |
|
| 90 |
# Make chunk duration configurable via environment variable, default to 3 minutes
|
| 91 |
+
CHUNK_DURATION_S = int(os.getenv("CHUNK_DURATION_S", 120))
|
| 92 |
|
| 93 |
sr = librosa.get_samplerate(str(file_path))
|
| 94 |
stream = librosa.stream(
|