move settings to file
This commit is contained in:
parent
c72a707a2d
commit
6a8470d6e9
1
.gitignore
vendored
1
.gitignore
vendored
@ -16,3 +16,4 @@
|
||||
/app_config.json
|
||||
/custom_logo
|
||||
/static/theme.css
|
||||
/transcription_folder.yml
|
||||
@ -5,6 +5,7 @@ import whisper
|
||||
import concurrent.futures
|
||||
import json
|
||||
import re
|
||||
import yaml
|
||||
|
||||
# model_name = "large-v3"
|
||||
model_name = "medium"
|
||||
@ -13,17 +14,9 @@ model_name = "medium"
|
||||
start_time = 0
|
||||
total_audio_length = 0
|
||||
|
||||
folder_list = [
|
||||
# Speyer
|
||||
# "\\\\10.1.0.11\\Aufnahme-stereo\\010 Gottesdienste ARCHIV\\2025",
|
||||
# "\\\\10.1.0.11\\Aufnahme-stereo\\010 Gottesdienste ARCHIV\\2016",
|
||||
# "\\\\10.1.0.11\\Aufnahme-stereo\\010 Gottesdienste ARCHIV\\2015",
|
||||
# "\\\\10.1.0.11\\Aufnahme-stereo\\010 Gottesdienste ARCHIV\\2014",
|
||||
|
||||
# Schwegenheim
|
||||
"\\\\10.1.1.11\\Aufnahme-stereo\\010 Gottesdienste ARCHIV\\2025",
|
||||
"\\\\10.1.1.11\\Aufnahme-stereo\\010 Gottesdienste ARCHIV\\2024"
|
||||
]
|
||||
with open("transcription_folder.yml", "r", encoding="utf-8") as file:
|
||||
settings = yaml.safe_load(file)
|
||||
folder_list = settings.get("folder_list", [])
|
||||
|
||||
def format_timestamp(seconds):
|
||||
"""Format seconds into HH:MM:SS."""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user