Spaces:
Running
on
Zero
Running
on
Zero
test
Browse files
app.py
CHANGED
|
@@ -110,9 +110,9 @@ with gr.Blocks() as demo:
|
|
| 110 |
with gr.Row():
|
| 111 |
with gr.Column():
|
| 112 |
image_input_component = gr.Image(
|
| 113 |
-
type='pil', label='Upload image'
|
| 114 |
image_prompter_input_component = ImagePrompter(
|
| 115 |
-
type='pil', label='Image prompt')
|
| 116 |
submit_button_component = gr.Button(
|
| 117 |
value='Submit', variant='primary')
|
| 118 |
with gr.Column():
|
|
@@ -133,7 +133,6 @@ with gr.Blocks() as demo:
|
|
| 133 |
|
| 134 |
|
| 135 |
def on_mode_dropdown_change(text):
|
| 136 |
-
print(text)
|
| 137 |
return [
|
| 138 |
gr.Image(visible=text == MASK_GENERATION_MODE),
|
| 139 |
ImagePrompter(visible=text == BOX_PROMPT_MODE)
|
|
|
|
| 110 |
with gr.Row():
|
| 111 |
with gr.Column():
|
| 112 |
image_input_component = gr.Image(
|
| 113 |
+
type='pil', label='Upload image')
|
| 114 |
image_prompter_input_component = ImagePrompter(
|
| 115 |
+
type='pil', label='Image prompt', visible=False)
|
| 116 |
submit_button_component = gr.Button(
|
| 117 |
value='Submit', variant='primary')
|
| 118 |
with gr.Column():
|
|
|
|
| 133 |
|
| 134 |
|
| 135 |
def on_mode_dropdown_change(text):
|
|
|
|
| 136 |
return [
|
| 137 |
gr.Image(visible=text == MASK_GENERATION_MODE),
|
| 138 |
ImagePrompter(visible=text == BOX_PROMPT_MODE)
|