Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,15 +75,10 @@ def predict(image):
|
|
| 75 |
|
| 76 |
# Handle monochromatic options
|
| 77 |
monochromatic_options = set(complementary_palette) # Use a set to avoid duplicates
|
| 78 |
-
|
| 79 |
-
monochromatic_options.add(complementary_color.lower())
|
| 80 |
|
| 81 |
if len(monochromatic_options) > 0:
|
| 82 |
-
output += "\nMonochromatic options:"
|
| 83 |
-
for color in monochromatic_options:
|
| 84 |
-
output += f" {color},"
|
| 85 |
-
output = output[:-1] # Removes the last comma
|
| 86 |
-
output += "."
|
| 87 |
|
| 88 |
return output # Return the formatted output
|
| 89 |
|
|
|
|
| 75 |
|
| 76 |
# Handle monochromatic options
|
| 77 |
monochromatic_options = set(complementary_palette) # Use a set to avoid duplicates
|
| 78 |
+
monochromatic_options.discard(complementary_color.lower()) # Remove the complementary color
|
|
|
|
| 79 |
|
| 80 |
if len(monochromatic_options) > 0:
|
| 81 |
+
output += f"\nMonochromatic options: {', '.join(monochromatic_options)}."
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
|
| 83 |
return output # Return the formatted output
|
| 84 |
|