ghostsInTheMachine commited on
Commit
6b21c48
·
verified ·
1 Parent(s): 1ba1ac4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -113,7 +113,7 @@ custom_css = """
113
  100% { background-position: 0% 50%; }
114
  }
115
 
116
- .gradio-container button {
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 # Apply custom CSS here
 
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)