Update app.py
Browse files
app.py
CHANGED
@@ -186,9 +186,9 @@ def label_to_color_image(label):
|
|
186 |
return colormap[label]
|
187 |
|
188 |
def draw_plot(pred_img, seg):
|
189 |
-
fig = plt.figure(figsize=(
|
190 |
|
191 |
-
grid_spec = gridspec.GridSpec(
|
192 |
|
193 |
plt.subplot(grid_spec[0])
|
194 |
plt.imshow(pred_img)
|
@@ -233,7 +233,7 @@ def sepia(input_img):
|
|
233 |
return fig
|
234 |
|
235 |
demo = gr.Interface(fn=sepia,
|
236 |
-
inputs=gr.Image(shape=(
|
237 |
outputs=['plot'],
|
238 |
examples=["kitchen.jpg", "bridge.jpg", "red.jpg", "livingroom.jpg"],
|
239 |
allow_flagging='never')
|
|
|
186 |
return colormap[label]
|
187 |
|
188 |
def draw_plot(pred_img, seg):
|
189 |
+
fig = plt.figure(figsize=(20, 15))
|
190 |
|
191 |
+
grid_spec = gridspec.GridSpec(1, 2, width_ratios=[6, 1])
|
192 |
|
193 |
plt.subplot(grid_spec[0])
|
194 |
plt.imshow(pred_img)
|
|
|
233 |
return fig
|
234 |
|
235 |
demo = gr.Interface(fn=sepia,
|
236 |
+
inputs=gr.Image(shape=(400, 600)),
|
237 |
outputs=['plot'],
|
238 |
examples=["kitchen.jpg", "bridge.jpg", "red.jpg", "livingroom.jpg"],
|
239 |
allow_flagging='never')
|