From 85132215f652becad3811cefb6a2b3c9e79ced24 Mon Sep 17 00:00:00 2001 From: "Jona T. Feucht" <14951074+jonafeucht@users.noreply.github.com> Date: Wed, 12 Jun 2024 13:52:56 +0200 Subject: [PATCH] Update image_query_classification.py --- src/routes/api/image_query_classification.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/api/image_query_classification.py b/src/routes/api/image_query_classification.py index b7652f0..d7143f7 100644 --- a/src/routes/api/image_query_classification.py +++ b/src/routes/api/image_query_classification.py @@ -196,10 +196,10 @@ async def multi_image_query_classification( # Read the file as bytes image_list = [] - classifier = check_model(model_name) - for model_name in model_names: try: + classifier = check_model(model_name) + contents = await file.read() labels_copy = labels.copy()