Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -152,7 +152,7 @@ with image_blocks as demo:
|
|
152 |
with gr.Box(elem_id="mask_radio").style(border=False):
|
153 |
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)
|
154 |
word_mask = gr.Textbox(label = "What to find in your image", interactive=False, elem_id="word_mask", placeholder="Disabled", value="chest, outfit, dress, costume, wear, clothing").style(container=False)
|
155 |
-
prompt = gr.Textbox(label = 'Your prompt (what you want to add in place of what you are removing)', value="
|
156 |
radio.change(fn=swap_word_mask, inputs=radio, outputs=word_mask,show_progress=False)
|
157 |
radio.change(None, inputs=[], outputs=image_blocks, _js = """
|
158 |
() => {
|
|
|
152 |
with gr.Box(elem_id="mask_radio").style(border=False):
|
153 |
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)
|
154 |
word_mask = gr.Textbox(label = "What to find in your image", interactive=False, elem_id="word_mask", placeholder="Disabled", value="chest, outfit, dress, costume, wear, clothing").style(container=False)
|
155 |
+
prompt = gr.Textbox(label = 'Your prompt (what you want to add in place of what you are removing)', value="")
|
156 |
radio.change(fn=swap_word_mask, inputs=radio, outputs=word_mask,show_progress=False)
|
157 |
radio.change(None, inputs=[], outputs=image_blocks, _js = """
|
158 |
() => {
|