multimodalart HF staff commited on
Commit
5c442f8
1 Parent(s): 442e0e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -146,7 +146,7 @@ with image_blocks as demo:
146
  radio = gr.Radio(["draw a mask above", "type what to mask below"], value="draw a mask above", show_label=False, interactive=True).style(container=False)
147
  word_mask = gr.Textbox(label = "What to find in your image", interactive=False, elem_id="word_mask", placeholder="Disabled").style(container=False)
148
  prompt = gr.Textbox(label = 'Your prompt (what you want to add in place of what you are removing)')
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[document.styleSheets.length - 1]
 
146
  radio = gr.Radio(["draw a mask above", "type what to mask below"], value="draw a mask above", show_label=False, interactive=True).style(container=False)
147
  word_mask = gr.Textbox(label = "What to find in your image", interactive=False, elem_id="word_mask", placeholder="Disabled").style(container=False)
148
  prompt = gr.Textbox(label = 'Your prompt (what you want to add in place of what you are removing)')
149
+ radio.change(fn=swap_word_mask, inputs=radio, outputs=word_mask,show_progress=False)
150
  radio.change(None, inputs=[], outputs=image_blocks, _js = """
151
  () => {
152
  css_style = document.styleSheets[document.styleSheets.length - 1]