Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -324,10 +324,10 @@ Following the algorithm proposed in IP-Composer: Semantic Composition of Visual
|
|
324 |
use_concpet_from_file_3 = gr.State()
|
325 |
with gr.Row():
|
326 |
with gr.Column():
|
327 |
-
base_image = gr.Image(label="Base Image (Required)", type="numpy", height=
|
328 |
with gr.Tab("Concept 1"):
|
329 |
with gr.Group():
|
330 |
-
concept_image1 = gr.Image(label="Concept Image 1", type="numpy", height=
|
331 |
with gr.Row():
|
332 |
concept_name1 = gr.Dropdown(concept_options, label="Concept 1", value=None, info="Pick concept type")
|
333 |
with gr.Accordion("π‘ Or use a new concept π", open=False):
|
@@ -339,7 +339,7 @@ Following the algorithm proposed in IP-Composer: Semantic Composition of Visual
|
|
339 |
|
340 |
with gr.Tab("Concept 2 (Optional)"):
|
341 |
with gr.Group():
|
342 |
-
concept_image2 = gr.Image(label="Concept Image 2", type="numpy", height=
|
343 |
with gr.Row():
|
344 |
concept_name2 = gr.Dropdown(concept_options, label="Concept 2", value=None, info="Pick concept type")
|
345 |
with gr.Accordion("π‘ Or use a new concept π", open=False):
|
@@ -352,7 +352,7 @@ Following the algorithm proposed in IP-Composer: Semantic Composition of Visual
|
|
352 |
|
353 |
with gr.Tab("Concept 3 (optional)"):
|
354 |
with gr.Group():
|
355 |
-
concept_image3 = gr.Image(label="Concept Image 3", type="numpy", height=
|
356 |
with gr.Row():
|
357 |
concept_name3 = gr.Dropdown(concept_options, label="Concept 3", value= None, info="Pick concept type")
|
358 |
with gr.Accordion("π‘ Or use a new concept π", open=False):
|
@@ -379,7 +379,7 @@ Following the algorithm proposed in IP-Composer: Semantic Composition of Visual
|
|
379 |
rank3 = gr.Slider(minimum=1, maximum=150, value=30, step=1, label="Rank concept 3")
|
380 |
|
381 |
with gr.Column():
|
382 |
-
output_image = gr.Image(label="Composed output", show_label=True)
|
383 |
submit_btn = gr.Button("Generate")
|
384 |
|
385 |
gr.Examples(
|
|
|
324 |
use_concpet_from_file_3 = gr.State()
|
325 |
with gr.Row():
|
326 |
with gr.Column():
|
327 |
+
base_image = gr.Image(label="Base Image (Required)", type="numpy", height=400, width=400)
|
328 |
with gr.Tab("Concept 1"):
|
329 |
with gr.Group():
|
330 |
+
concept_image1 = gr.Image(label="Concept Image 1", type="numpy", height=400, width=400)
|
331 |
with gr.Row():
|
332 |
concept_name1 = gr.Dropdown(concept_options, label="Concept 1", value=None, info="Pick concept type")
|
333 |
with gr.Accordion("π‘ Or use a new concept π", open=False):
|
|
|
339 |
|
340 |
with gr.Tab("Concept 2 (Optional)"):
|
341 |
with gr.Group():
|
342 |
+
concept_image2 = gr.Image(label="Concept Image 2", type="numpy", height=400, width=400)
|
343 |
with gr.Row():
|
344 |
concept_name2 = gr.Dropdown(concept_options, label="Concept 2", value=None, info="Pick concept type")
|
345 |
with gr.Accordion("π‘ Or use a new concept π", open=False):
|
|
|
352 |
|
353 |
with gr.Tab("Concept 3 (optional)"):
|
354 |
with gr.Group():
|
355 |
+
concept_image3 = gr.Image(label="Concept Image 3", type="numpy", height=400, width=400)
|
356 |
with gr.Row():
|
357 |
concept_name3 = gr.Dropdown(concept_options, label="Concept 3", value= None, info="Pick concept type")
|
358 |
with gr.Accordion("π‘ Or use a new concept π", open=False):
|
|
|
379 |
rank3 = gr.Slider(minimum=1, maximum=150, value=30, step=1, label="Rank concept 3")
|
380 |
|
381 |
with gr.Column():
|
382 |
+
output_image = gr.Image(label="Composed output", show_label=True,height=400, width=400 )
|
383 |
submit_btn = gr.Button("Generate")
|
384 |
|
385 |
gr.Examples(
|