Spaces:
Running
Running
Update src/config.py
Browse files- src/config.py +2 -2
src/config.py
CHANGED
@@ -51,11 +51,11 @@ class VadInitialPromptMode(Enum):
|
|
51 |
|
52 |
class ApplicationConfig:
|
53 |
def __init__(self, models: Dict[Literal["whisper", "m2m100", "nllb", "mt5", "ALMA", "madlad400"], List[ModelConfig]],
|
54 |
-
input_audio_max_duration: int =
|
55 |
queue_concurrency_count: int = 1, delete_uploaded_files: bool = True,
|
56 |
whisper_implementation: str = "whisper", default_model_name: str = "medium",
|
57 |
default_vad: str = "silero-vad",
|
58 |
-
vad_parallel_devices: str = "", vad_cpu_cores: int = 1, vad_process_timeout: int =
|
59 |
auto_parallel: bool = False, output_dir: str = None,
|
60 |
model_dir: str = None, device: str = None,
|
61 |
verbose: bool = True, task: str = "transcribe", language: str = None,
|
|
|
51 |
|
52 |
class ApplicationConfig:
|
53 |
def __init__(self, models: Dict[Literal["whisper", "m2m100", "nllb", "mt5", "ALMA", "madlad400"], List[ModelConfig]],
|
54 |
+
input_audio_max_duration: int = 600, share: bool = False, server_name: str = None, server_port: int = 7860,
|
55 |
queue_concurrency_count: int = 1, delete_uploaded_files: bool = True,
|
56 |
whisper_implementation: str = "whisper", default_model_name: str = "medium",
|
57 |
default_vad: str = "silero-vad",
|
58 |
+
vad_parallel_devices: str = "", vad_cpu_cores: int = 1, vad_process_timeout: int = 1800,
|
59 |
auto_parallel: bool = False, output_dir: str = None,
|
60 |
model_dir: str = None, device: str = None,
|
61 |
verbose: bool = True, task: str = "transcribe", language: str = None,
|