Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -137,15 +137,12 @@ SOFTWARE.
|
|
| 137 |
|
| 138 |
css = """
|
| 139 |
body {
|
| 140 |
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif
|
| 141 |
}
|
| 142 |
.gradio-container {
|
| 143 |
background: white;
|
| 144 |
}
|
| 145 |
-
#component-0 {
|
| 146 |
-
max-width: 100% !important;
|
| 147 |
-
}
|
| 148 |
-
.remove-background {
|
| 149 |
font-family: inherit !important;
|
| 150 |
font-size: 16px !important;
|
| 151 |
font-weight: bold !important;
|
|
@@ -160,7 +157,7 @@ body {
|
|
| 160 |
border: 2px solid black !important;
|
| 161 |
border-radius: 10px !important;
|
| 162 |
}
|
| 163 |
-
|
| 164 |
background: linear-gradient(
|
| 165 |
135deg,
|
| 166 |
#b2ebf2, #c8e6c9, #fff176, #ffcdd2,
|
|
@@ -265,19 +262,4 @@ if (window.gradio_config.version.startsWith('3')) {
|
|
| 265 |
"""
|
| 266 |
|
| 267 |
iface = gr.Interface(
|
| 268 |
-
fn=remove_background
|
| 269 |
-
inputs=gr.Image(type="numpy"),
|
| 270 |
-
outputs=[
|
| 271 |
-
gr.Image(type="filepath", label="Mask"),
|
| 272 |
-
gr.Image(type="filepath", label="Reverse Mask"),
|
| 273 |
-
gr.Image(type="filepath", label="Foreground"),
|
| 274 |
-
gr.Image(type="filepath", label="Background")
|
| 275 |
-
],
|
| 276 |
-
allow_flagging="never",
|
| 277 |
-
css=css,
|
| 278 |
-
js=js,
|
| 279 |
-
elem_classes={"submit": "remove-background"}
|
| 280 |
-
)
|
| 281 |
-
|
| 282 |
-
if __name__ == "__main__":
|
| 283 |
-
iface.launch(debug=True)
|
|
|
|
| 137 |
|
| 138 |
css = """
|
| 139 |
body {
|
| 140 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
| 141 |
}
|
| 142 |
.gradio-container {
|
| 143 |
background: white;
|
| 144 |
}
|
| 145 |
+
#component-0 button {
|
|
|
|
|
|
|
|
|
|
| 146 |
font-family: inherit !important;
|
| 147 |
font-size: 16px !important;
|
| 148 |
font-weight: bold !important;
|
|
|
|
| 157 |
border: 2px solid black !important;
|
| 158 |
border-radius: 10px !important;
|
| 159 |
}
|
| 160 |
+
#component-0 button:hover {
|
| 161 |
background: linear-gradient(
|
| 162 |
135deg,
|
| 163 |
#b2ebf2, #c8e6c9, #fff176, #ffcdd2,
|
|
|
|
| 262 |
"""
|
| 263 |
|
| 264 |
iface = gr.Interface(
|
| 265 |
+
fn=remove_background
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|