mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-07-30 13:48:07 +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),
|
self.embeddings.embed_description("", data, upsert=False),
|
||||||
pack=False,
|
pack=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
processors = [self.realtime_processors, self.post_processors]
|
processors = [self.realtime_processors, self.post_processors]
|
||||||
for processor_list in processors:
|
for processor_list in processors:
|
||||||
for processor in processor_list:
|
for processor in processor_list:
|
||||||
resp = processor.handle_request(topic, data)
|
resp = processor.handle_request(topic, data)
|
||||||
if resp is not None:
|
if resp is not None:
|
||||||
return resp
|
return resp
|
||||||
|
|
||||||
|
return None
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"Unable to handle embeddings request {e}", exc_info=True)
|
logger.error(f"Unable to handle embeddings request {e}", exc_info=True)
|
||||||
|
|
||||||
|
@ -170,9 +170,15 @@ export default function ClassificationSettingsView({
|
|||||||
);
|
);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
addMessage(
|
||||||
|
"search_settings",
|
||||||
|
`Restart Required (Classification settings changed)`,
|
||||||
|
undefined,
|
||||||
|
"search_settings",
|
||||||
|
);
|
||||||
setIsLoading(false);
|
setIsLoading(false);
|
||||||
});
|
});
|
||||||
}, [updateConfig, classificationSettings, t]);
|
}, [classificationSettings, t, addMessage, updateConfig]);
|
||||||
|
|
||||||
const onCancel = useCallback(() => {
|
const onCancel = useCallback(() => {
|
||||||
setClassificationSettings(origSearchSettings);
|
setClassificationSettings(origSearchSettings);
|
||||||
|
Loading…
Reference in New Issue
Block a user