Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -113,7 +113,7 @@ custom_css = """
|
|
113 |
100% { background-position: 0% 50%; }
|
114 |
}
|
115 |
|
116 |
-
|
117 |
background: linear-gradient(
|
118 |
135deg,
|
119 |
#e0f7fa, #e8f5e9, #fff9c4, #ffebee,
|
@@ -136,8 +136,14 @@ iface = gr.Interface(
|
|
136 |
gr.Image(type="pil", label="Background Mask")
|
137 |
],
|
138 |
allow_flagging="never",
|
139 |
-
css=custom_css
|
|
|
140 |
)
|
141 |
|
|
|
|
|
|
|
|
|
|
|
142 |
if __name__ == "__main__":
|
143 |
iface.launch(debug=True)
|
|
|
113 |
100% { background-position: 0% 50%; }
|
114 |
}
|
115 |
|
116 |
+
#submit-button {
|
117 |
background: linear-gradient(
|
118 |
135deg,
|
119 |
#e0f7fa, #e8f5e9, #fff9c4, #ffebee,
|
|
|
136 |
gr.Image(type="pil", label="Background Mask")
|
137 |
],
|
138 |
allow_flagging="never",
|
139 |
+
css=custom_css,
|
140 |
+
live=False
|
141 |
)
|
142 |
|
143 |
+
# Assigning an ID to the submit button
|
144 |
+
with gr.Blocks(css=custom_css) as demo:
|
145 |
+
btn = gr.Button("Submit", elem_id="submit-button")
|
146 |
+
demo.launch()
|
147 |
+
|
148 |
if __name__ == "__main__":
|
149 |
iface.launch(debug=True)
|