Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -136,7 +136,7 @@ with gr.Blocks() as demo:
|
|
136 |
|
137 |
with gr.Row():
|
138 |
with gr.Column():
|
139 |
-
input_image = gr.Image(type="pil", label="Input Image")
|
140 |
color_choice = gr.Dropdown(
|
141 |
choices=["Red", "Blue", "Green", "Yellow", "Purple",
|
142 |
"Orange", "Cyan", "Magenta", "White", "Black"],
|
@@ -146,7 +146,7 @@ with gr.Blocks() as demo:
|
|
146 |
process_btn = gr.Button("Recolor Dress")
|
147 |
|
148 |
with gr.Column():
|
149 |
-
output_image = gr.Image(type="pil", label="Result")
|
150 |
|
151 |
process_btn.click(
|
152 |
fn=change_dress_color,
|
|
|
136 |
|
137 |
with gr.Row():
|
138 |
with gr.Column():
|
139 |
+
input_image = gr.Image(type="pil", label="Input Image", image_mode = "RGB")
|
140 |
color_choice = gr.Dropdown(
|
141 |
choices=["Red", "Blue", "Green", "Yellow", "Purple",
|
142 |
"Orange", "Cyan", "Magenta", "White", "Black"],
|
|
|
146 |
process_btn = gr.Button("Recolor Dress")
|
147 |
|
148 |
with gr.Column():
|
149 |
+
output_image = gr.Image(type="pil", label="Result", image_mode = "RGB")
|
150 |
|
151 |
process_btn.click(
|
152 |
fn=change_dress_color,
|