jin5605 commited on
Commit
fdfbf3c
Β·
1 Parent(s): daeff05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -5
app.py CHANGED
@@ -102,10 +102,16 @@ 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:", type="pil", theme="dark"), # Dark ν…Œλ§ˆ
106
- outputs=[gr.Image(plot=True, label="Segmentation Map", type="pil", theme="dark")], # Dark ν…Œλ§ˆ
107
- examples=["city-1.jpg", "city-2.jpg", "city-3.jpg"],
108
- allow_flagging='never')
109
-
 
 
 
 
 
 
110
 
111
  demo.launch()
 
102
  return fig
103
 
104
  demo = gr.Interface(fn=sepia,
105
+ inputs=gr.Image(shape=(400, 600), label="Upload an image:", type="pil", theme="dark"),
106
+ outputs=[gr.Image(plot=True, label="Segmentation Map", type="pil", theme="dark")],
107
+ examples=["city-1.jpg", "city-2.jpg", "city-3.jpg"],
108
+ allow_flagging='never')
109
+
110
+ # μ‚¬μš©μž μ •μ˜ CSS
111
+ custom_css = """
112
+ .component-root {
113
+ background-color: black;
114
+ }
115
+ """
116
 
117
  demo.launch()