move more complex classes to their own module, keep imports helpers.py core python
This commit is contained in:
+3
-4
@@ -5,9 +5,9 @@ import time
|
||||
import librosa
|
||||
import numpy as np
|
||||
|
||||
from utils.helpers import get_settings, Detection, get_language
|
||||
from utils.models import get_model
|
||||
|
||||
from scripts.utils.classes import Detection, ParseFileName
|
||||
from scripts.utils.helpers import get_settings, get_language
|
||||
from scripts.utils.models import get_model
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
@@ -193,7 +193,6 @@ def run_analysis(file):
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
from utils.helpers import ParseFileName
|
||||
conf = get_settings()
|
||||
model = conf['MODEL']
|
||||
test_files = ['../tests/testdata/2024-02-24-birdnet-16:19:37.wav']
|
||||
|
||||
Reference in New Issue
Block a user