jin5605 commited on
Commit
07fe1c9
ยท
1 Parent(s): 562f8e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -102,8 +102,8 @@ def sepia(input_img):
102
  return fig
103
 
104
  demo = gr.Interface(fn=sepia,
105
- inputs=gr.Image(shape=(400, 600), label="Upload an image:"),
106
- outputs=['plot'],
107
  examples=["city-1.jpg", "city-2.jpg", "city-3.jpg"],
108
  allow_flagging='never')
109
 
 
102
  return fig
103
 
104
  demo = gr.Interface(fn=sepia,
105
+ inputs=gr.Image(shape=(400, 600), label="Upload an image:", type="pil", theme="compact"), # Compact ํ…Œ๋งˆ
106
+ outputs=[gr.Image(plot=True, label="Segmentation Map", type="pil", theme="compact")], # Compact ํ…Œ๋งˆ
107
  examples=["city-1.jpg", "city-2.jpg", "city-3.jpg"],
108
  allow_flagging='never')
109