Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,7 +53,8 @@ with demo:
|
|
| 53 |
"""
|
| 54 |
)
|
| 55 |
inputs = [gr.Image(type="pil", label="Image to extract colors from")]
|
| 56 |
-
|
|
|
|
| 57 |
|
| 58 |
btn = gr.Button("Extract colors")
|
| 59 |
btn.click(fn=get_colors, inputs=inputs, outputs=outputs)
|
|
|
|
| 53 |
"""
|
| 54 |
)
|
| 55 |
inputs = [gr.Image(type="pil", label="Image to extract colors from")]
|
| 56 |
+
with gr.Row():
|
| 57 |
+
outputs = [gr.ColorPicker(label="color 1"), gr.ColorPicker(label="color 2"),gr.ColorPicker(label="color 3"),gr.ColorPicker(label="color 4"),gr.ColorPicker(label="color 5")]
|
| 58 |
|
| 59 |
btn = gr.Button("Extract colors")
|
| 60 |
btn.click(fn=get_colors, inputs=inputs, outputs=outputs)
|