Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,29 +7,6 @@ import random
|
|
| 7 |
#beginning of copilot
|
| 8 |
|
| 9 |
|
| 10 |
-
css =
|
| 11 |
-
# Style the checkbox itself */
|
| 12 |
-
input[type="checkbox"] {
|
| 13 |
-
border-color: red; # Change border color
|
| 14 |
-
background-color: yellow; # Change background color (for the unchecked state) */
|
| 15 |
-
}
|
| 16 |
-
|
| 17 |
-
# Style the checkbox when it's checked */
|
| 18 |
-
input[type="checkbox"]:checked {
|
| 19 |
-
background-color: green; # Change background color when checked */
|
| 20 |
-
border-color: darkgreen;
|
| 21 |
-
}
|
| 22 |
-
|
| 23 |
-
# You might also need to style the checkmark itself using pseudo-elements */
|
| 24 |
-
input[type="checkbox"]:checked::before {
|
| 25 |
-
content: "✔"; # Add a checkmark symbol
|
| 26 |
-
color: white; # Color of the checkmark
|
| 27 |
-
}
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
with gr.Blocks(css=css) as demo:
|
| 31 |
-
gr.Checkbox(label="My Checkbox")
|
| 32 |
-
demo.launch()
|
| 33 |
|
| 34 |
|
| 35 |
#end of copilot
|
|
|
|
| 7 |
#beginning of copilot
|
| 8 |
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
|
| 12 |
#end of copilot
|