panda47 commited on
Commit
b0a2138
·
1 Parent(s): d47a964

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=(20, 15))
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=(600, 400)),
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')