Karin0616
commited on
Commit
·
0960380
1
Parent(s):
82e8ec6
annotated test
Browse files
app.py
CHANGED
@@ -104,30 +104,10 @@ def sepia(input_img):
|
|
104 |
return fig
|
105 |
|
106 |
|
|
|
107 |
demo = gr.Interface(fn=sepia,
|
108 |
inputs=gr.Image(shape=(564,846)),
|
109 |
-
outputs=['plot',
|
110 |
-
color_map={
|
111 |
-
"road": "#CC575C",
|
112 |
-
"sidewalk": "#70B9D4",
|
113 |
-
"building": "#C4A07A",
|
114 |
-
"wall": "#6A87F2",
|
115 |
-
"fence": "#5BC0DE",
|
116 |
-
"pole": "#FFC0CB",
|
117 |
-
"traffic light": "#B0E0E6",
|
118 |
-
"traffic sign": "#DE3163",
|
119 |
-
"vegetation": "#8B4513",
|
120 |
-
"terrain": "#FF0000",
|
121 |
-
"sky": "#0000FF",
|
122 |
-
"person": "#FFE4B5",
|
123 |
-
"rider": "#800000",
|
124 |
-
"car": "#008000",
|
125 |
-
"truck": "#FF6347",
|
126 |
-
"bus": "#00FF00",
|
127 |
-
"train": "#800080",
|
128 |
-
"motorcycle": "#FFFF00",
|
129 |
-
"bicycle": "#800080"}
|
130 |
-
)],
|
131 |
live=True,
|
132 |
examples=["city1.jpg","city2.jpg","city3.jpg"],
|
133 |
allow_flagging='never',
|
|
|
104 |
return fig
|
105 |
|
106 |
|
107 |
+
|
108 |
demo = gr.Interface(fn=sepia,
|
109 |
inputs=gr.Image(shape=(564,846)),
|
110 |
+
outputs=['plot'],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
live=True,
|
112 |
examples=["city1.jpg","city2.jpg","city3.jpg"],
|
113 |
allow_flagging='never',
|