Spaces:
Runtime error
Runtime error
danielecordano
commited on
Commit
•
d4e2582
1
Parent(s):
5c0ac6e
Make color visible
Browse files
app.py
CHANGED
@@ -37,8 +37,8 @@ outimage1 = gr.Image(format="png", label="Result")
|
|
37 |
outimage2 = gr.Image(format="png", label="Result")
|
38 |
image = gr.Image(label="Upload an image")
|
39 |
text = gr.Textbox(label="Paste an image URL")
|
40 |
-
color1 = gr.ColorPicker(value="#
|
41 |
-
color2 = gr.ColorPicker(value="#
|
42 |
chameleon = load_img("chameleon.jpg", output_type="pil")
|
43 |
url = "https://hips.hearstapps.com/hmg-prod/images/gettyimages-1229892983-square.jpg"
|
44 |
tab1 = gr.Interface(fn, inputs=[image, color1], outputs=outimage1, examples=[[chameleon, "#FFFFFF"]], api_name="image")
|
|
|
37 |
outimage2 = gr.Image(format="png", label="Result")
|
38 |
image = gr.Image(label="Upload an image")
|
39 |
text = gr.Textbox(label="Paste an image URL")
|
40 |
+
color1 = gr.ColorPicker(value="#FF0000", label="Color")
|
41 |
+
color2 = gr.ColorPicker(value="#FF0000", label="Color")
|
42 |
chameleon = load_img("chameleon.jpg", output_type="pil")
|
43 |
url = "https://hips.hearstapps.com/hmg-prod/images/gettyimages-1229892983-square.jpg"
|
44 |
tab1 = gr.Interface(fn, inputs=[image, color1], outputs=outimage1, examples=[[chameleon, "#FFFFFF"]], api_name="image")
|