Spaces:
Runtime error
Runtime error
Commit
·
ac954ce
1
Parent(s):
09384b3
Update app.py
Browse files
app.py
CHANGED
|
@@ -149,7 +149,7 @@ with image_blocks as demo:
|
|
| 149 |
radio.change(fn=swap_word_mask, inputs=radio, outputs=word_mask)
|
| 150 |
radio.change(None, inputs=[], outputs=image_blocks, _js = """
|
| 151 |
() => {
|
| 152 |
-
css_style = document.
|
| 153 |
last_item = css_style.cssRules[css_style.cssRules.length - 1]
|
| 154 |
last_item.style.display = ["flex", ""].includes(last_item.style.display) ? "none" : "flex";
|
| 155 |
}""")
|
|
|
|
| 149 |
radio.change(fn=swap_word_mask, inputs=radio, outputs=word_mask)
|
| 150 |
radio.change(None, inputs=[], outputs=image_blocks, _js = """
|
| 151 |
() => {
|
| 152 |
+
css_style = document.styleSheets[4]
|
| 153 |
last_item = css_style.cssRules[css_style.cssRules.length - 1]
|
| 154 |
last_item.style.display = ["flex", ""].includes(last_item.style.display) ? "none" : "flex";
|
| 155 |
}""")
|