Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
|
|
73 |
locked_colors = [gr.Textbox(label=f"Color {i+1}", interactive=True) for i in range(5)]
|
74 |
|
75 |
generate_ai_button.click(generate_ai_palette, inputs=[], outputs=locked_colors)
|
76 |
-
regenerate_button.click(update_palette, inputs=[image_input,
|
77 |
|
78 |
image_input.select(update_palette, inputs=[image_input, image_input.select, image_input.select, locked_colors], outputs=[palette_output, locked_colors])
|
79 |
|
|
|
73 |
locked_colors = [gr.Textbox(label=f"Color {i+1}", interactive=True) for i in range(5)]
|
74 |
|
75 |
generate_ai_button.click(generate_ai_palette, inputs=[], outputs=locked_colors)
|
76 |
+
regenerate_button.click(update_palette, inputs=[image_input, locked_colors], outputs=[palette_output, locked_colors])
|
77 |
|
78 |
image_input.select(update_palette, inputs=[image_input, image_input.select, image_input.select, locked_colors], outputs=[palette_output, locked_colors])
|
79 |
|