nightfury commited on
Commit
d4a60e3
1 Parent(s): f949a41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -124,10 +124,10 @@ css = '''
124
  #image_upload .touch-none{display: flex}
125
  '''
126
  def swap_word_mask(radio_option):
127
- if(radio_option == "type what to mask below"):
128
- return gr.update(interactive=True, placeholder="A cat")
129
- else:
130
  return gr.update(interactive=False, placeholder="Disabled")
 
 
131
 
132
  image_blocks = gr.Blocks(css=css)
133
  with image_blocks as demo:
 
124
  #image_upload .touch-none{display: flex}
125
  '''
126
  def swap_word_mask(radio_option):
127
+ if(radio_option == "draw a mask above"):
 
 
128
  return gr.update(interactive=False, placeholder="Disabled")
129
+ else:
130
+ return gr.update(interactive=True, placeholder="A cat")
131
 
132
  image_blocks = gr.Blocks(css=css)
133
  with image_blocks as demo: