mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-01-28 15:05:00 +03:00
Don't fail for audio transcription when semantic search is not enabled
This commit is contained in:
parent
ce40c7912f
commit
59a462057a
@ -131,8 +131,9 @@ class AudioTranscriptionPostProcessor(PostProcessorApi):
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
# Embed the description
|
# Embed the description if semantic search is enabled
|
||||||
self.embeddings.embed_description(event_id, transcription)
|
if self.config.semantic_search.enabled:
|
||||||
|
self.embeddings.embed_description(event_id, transcription)
|
||||||
|
|
||||||
except DoesNotExist:
|
except DoesNotExist:
|
||||||
logger.debug("No recording found for audio transcription post-processing")
|
logger.debug("No recording found for audio transcription post-processing")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user