Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -216,7 +216,7 @@ def naive_generate_candidates(wardrobe_items: List[Dict[str, Any]],
|
|
| 216 |
items = [seed]
|
| 217 |
if b and b.get("id") != seed.get("id"):
|
| 218 |
items.append(b)
|
| 219 |
-
if sh and sh.get("id") not in {seed.get("id
|
| 220 |
items.append(sh)
|
| 221 |
ids = tuple(sorted([str(x.get("id")) for x in items if x.get("id")]))
|
| 222 |
if ids in used:
|
|
|
|
| 216 |
items = [seed]
|
| 217 |
if b and b.get("id") != seed.get("id"):
|
| 218 |
items.append(b)
|
| 219 |
+
if sh and sh.get("id") not in {seed.get("id"), b.get('id') if b else None}:
|
| 220 |
items.append(sh)
|
| 221 |
ids = tuple(sorted([str(x.get("id")) for x in items if x.get("id")]))
|
| 222 |
if ids in used:
|