multimodalart HF staff commited on
Commit
ac954ce
1 Parent(s): 09384b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.querySelector('gradio-app').shadowRoot.styleSheets[1]
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
  }""")