Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 == "
|
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:
|