mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-07-26 13:47:03 +02:00
Classification fixes (#17337)
* Cleanup classification settings behavior * Cleanup response * restore
This commit is contained in:
parent
f8b0329b37
commit
a8fa77c6b9
@ -206,12 +206,15 @@ class EmbeddingMaintainer(threading.Thread):
|
||||
self.embeddings.embed_description("", data, upsert=False),
|
||||
pack=False,
|
||||
)
|
||||
|
||||
processors = [self.realtime_processors, self.post_processors]
|
||||
for processor_list in processors:
|
||||
for processor in processor_list:
|
||||
resp = processor.handle_request(topic, data)
|
||||
if resp is not None:
|
||||
return resp
|
||||
|
||||
return None
|
||||
except Exception as e:
|
||||
logger.error(f"Unable to handle embeddings request {e}", exc_info=True)
|
||||
|
||||
|
@ -170,9 +170,15 @@ export default function ClassificationSettingsView({
|
||||
);
|
||||
})
|
||||
.finally(() => {
|
||||
addMessage(
|
||||
"search_settings",
|
||||
`Restart Required (Classification settings changed)`,
|
||||
undefined,
|
||||
"search_settings",
|
||||
);
|
||||
setIsLoading(false);
|
||||
});
|
||||
}, [updateConfig, classificationSettings, t]);
|
||||
}, [classificationSettings, t, addMessage, updateConfig]);
|
||||
|
||||
const onCancel = useCallback(() => {
|
||||
setClassificationSettings(origSearchSettings);
|
||||
|
Loading…
Reference in New Issue
Block a user