Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def classify_image_with_properties(properties, image):
|
|
31 |
for prop in properties:
|
32 |
property_name = prop['property']
|
33 |
options = prop['options']
|
34 |
-
keywords =
|
35 |
# Effectuer la classification pour chaque ensemble propriété-options
|
36 |
inputs = processor(text=keywords, images=image, return_tensors="pt", padding=True)
|
37 |
outputs = model(**inputs)
|
|
|
31 |
for prop in properties:
|
32 |
property_name = prop['property']
|
33 |
options = prop['options']
|
34 |
+
keywords = options.split(',')
|
35 |
# Effectuer la classification pour chaque ensemble propriété-options
|
36 |
inputs = processor(text=keywords, images=image, return_tensors="pt", padding=True)
|
37 |
outputs = model(**inputs)
|