Don't run bird classification if model is not downloaded yet (#18474)

This commit is contained in:
Nicolas Mowen 2025-05-29 15:15:25 -06:00 committed by GitHub
parent c11ca42fb5
commit 27914fc3b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -97,6 +97,9 @@ class BirdRealTimeProcessor(RealTimeProcessorApi):
line = f.readline()
def process_frame(self, obj_data, frame):
if not self.interpreter:
return
if obj_data["label"] != "bird":
return