Spaces:
Running
Running
Update subgen.py
Browse files
subgen.py
CHANGED
@@ -75,7 +75,7 @@ def update_env_variables():
|
|
75 |
jellyfinserver = os.getenv('JELLYFINSERVER', 'http://192.168.1.111:8096')
|
76 |
whisper_model = os.getenv('WHISPER_MODEL', 'large-v3')
|
77 |
whisper_threads = int(os.getenv('WHISPER_THREADS', 10))
|
78 |
-
concurrent_transcriptions = int(os.getenv('CONCURRENT_TRANSCRIPTIONS',
|
79 |
transcribe_device = os.getenv('TRANSCRIBE_DEVICE', 'cuda')
|
80 |
procaddedmedia = convert_to_bool(os.getenv('PROCADDEDMEDIA', True))
|
81 |
procmediaonplay = convert_to_bool(os.getenv('PROCMEDIAONPLAY', True))
|
@@ -100,7 +100,7 @@ def update_env_variables():
|
|
100 |
custom_model_prompt = os.getenv('CUSTOM_MODEL_PROMPT', '')
|
101 |
lrc_for_audio_files = convert_to_bool(os.getenv('LRC_FOR_AUDIO_FILES', True))
|
102 |
custom_regroup = os.getenv('CUSTOM_REGROUP', 'cm_sl=84_sl=42++++++1')
|
103 |
-
detect_language_length = os.getenv('DETECT_LANGUAGE_LENGTH',
|
104 |
|
105 |
set_env_variables('subgen.env')
|
106 |
|
|
|
75 |
jellyfinserver = os.getenv('JELLYFINSERVER', 'http://192.168.1.111:8096')
|
76 |
whisper_model = os.getenv('WHISPER_MODEL', 'large-v3')
|
77 |
whisper_threads = int(os.getenv('WHISPER_THREADS', 10))
|
78 |
+
concurrent_transcriptions = int(os.getenv('CONCURRENT_TRANSCRIPTIONS', 5))
|
79 |
transcribe_device = os.getenv('TRANSCRIBE_DEVICE', 'cuda')
|
80 |
procaddedmedia = convert_to_bool(os.getenv('PROCADDEDMEDIA', True))
|
81 |
procmediaonplay = convert_to_bool(os.getenv('PROCMEDIAONPLAY', True))
|
|
|
100 |
custom_model_prompt = os.getenv('CUSTOM_MODEL_PROMPT', '')
|
101 |
lrc_for_audio_files = convert_to_bool(os.getenv('LRC_FOR_AUDIO_FILES', True))
|
102 |
custom_regroup = os.getenv('CUSTOM_REGROUP', 'cm_sl=84_sl=42++++++1')
|
103 |
+
detect_language_length = os.getenv('DETECT_LANGUAGE_LENGTH', 60)
|
104 |
|
105 |
set_env_variables('subgen.env')
|
106 |
|