You've already forked JapariArchive
fixed memory leak related to video files
This commit is contained in:
@@ -59,6 +59,10 @@ class WDClassifier():
|
||||
return "", {}, {}
|
||||
|
||||
async def classify_async(self, image_bytes, max_count = -1, tag_threshold = -1):
|
||||
if not image_bytes:
|
||||
#mainly for video files
|
||||
print("image bytes was null")
|
||||
return "", {}, {}
|
||||
with ThreadPoolExecutor() as executor:
|
||||
future = executor.submit(self.classify, image_bytes, max_count, tag_threshold)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user