Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -102,10 +102,16 @@ def sepia(input_img):
|
|
102 |
return fig
|
103 |
|
104 |
demo = gr.Interface(fn=sepia,
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
|
111 |
demo.launch()
|
|
|
102 |
return fig
|
103 |
|
104 |
demo = gr.Interface(fn=sepia,
|
105 |
+
inputs=gr.Image(shape=(400, 600), label="Upload an image:", type="pil", theme="dark"),
|
106 |
+
outputs=[gr.Image(plot=True, label="Segmentation Map", type="pil", theme="dark")],
|
107 |
+
examples=["city-1.jpg", "city-2.jpg", "city-3.jpg"],
|
108 |
+
allow_flagging='never')
|
109 |
+
|
110 |
+
# μ¬μ©μ μ μ CSS
|
111 |
+
custom_css = """
|
112 |
+
.component-root {
|
113 |
+
background-color: black;
|
114 |
+
}
|
115 |
+
"""
|
116 |
|
117 |
demo.launch()
|