|
@@ -70,7 +70,6 @@ cloud_base_url = 'https://storage.googleapis.com/{}'\
|
|
|
base_path = config.get("basepath", "/var/fourier")
|
|
|
fb_credentials = credentials.Certificate('/etc/Fourier-key.json')
|
|
|
firebase_admin.initialize_app(fb_credentials, config['firebase'])
|
|
|
-dejavu = Dejavu({"database_type":"mem"})
|
|
|
device_id = config['device_id']
|
|
|
device_path = os.path.join(base_path, device_id)
|
|
|
recognizer = FilePerSecondRecognizer
|
|
@@ -236,6 +235,7 @@ def process_segment(item, audios=None, calibration=None):
|
|
|
log.error(str(ex))
|
|
|
return
|
|
|
|
|
|
+ dejavu = Dejavu({"database_type":"mem"})
|
|
|
try:
|
|
|
dejavu.fingerprint_file(filename)
|
|
|
except Exception as ex:
|