Update app.py
Browse files
app.py
CHANGED
@@ -186,7 +186,7 @@ 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(1, 2, width_ratios=[6, 1])
|
192 |
|
@@ -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=(15, 20))
|
190 |
|
191 |
grid_spec = gridspec.GridSpec(1, 2, width_ratios=[6, 1])
|
192 |
|
|
|
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')
|