Spaces:
Running
on
Zero
Running
on
Zero
change concept type/upload ui
Browse files
app.py
CHANGED
@@ -317,36 +317,39 @@ following the algorithm proposed in [*IP-Composer: Semantic Composition of Visua
|
|
317 |
with gr.Tab("concept 1"):
|
318 |
with gr.Group():
|
319 |
concept_image1 = gr.Image(label="Concept Image 1", type="numpy")
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
|
|
327 |
|
328 |
with gr.Tab("concept 2 (optional)"):
|
329 |
with gr.Group():
|
330 |
concept_image2 = gr.Image(label="Concept Image 2", type="numpy")
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
|
|
338 |
|
339 |
|
340 |
with gr.Tab("concept 3 (optional)"):
|
341 |
with gr.Group():
|
342 |
concept_image3 = gr.Image(label="Concept Image 3", type="numpy")
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
|
|
350 |
|
351 |
|
352 |
|
|
|
317 |
with gr.Tab("concept 1"):
|
318 |
with gr.Group():
|
319 |
concept_image1 = gr.Image(label="Concept Image 1", type="numpy")
|
320 |
+
with gr.Row():
|
321 |
+
concept_name1 = gr.Dropdown(concept_options, label="concept 1", value=None, info="pick concept type")
|
322 |
+
with gr.Accordion("π‘ or use a new concept π", open=False):
|
323 |
+
gr.Markdown("1. upload a file with text variations of your concept (e.g. ask an LLM)")
|
324 |
+
gr.Markdown("2. prefereably with > 100 variations.")
|
325 |
+
with gr.Accordion("file example for the concept 'emotions'", open=False):
|
326 |
+
gr.Markdown(example)
|
327 |
+
concept_file_1 = gr.File(label="concept variations", file_types=["text"])
|
328 |
|
329 |
with gr.Tab("concept 2 (optional)"):
|
330 |
with gr.Group():
|
331 |
concept_image2 = gr.Image(label="Concept Image 2", type="numpy")
|
332 |
+
with gr.Row():
|
333 |
+
concept_name2 = gr.Dropdown(concept_options, label="concept 2", value=None, info="pick concept type")
|
334 |
+
with gr.Accordion("π‘ or use a new concept π", open=False):
|
335 |
+
gr.Markdown("1. upload a file with text variations of your concept (e.g. ask an LLM)")
|
336 |
+
gr.Markdown("2. prefereably with > 100 variations.")
|
337 |
+
with gr.Accordion("file example for the concept 'emotions'", open=False):
|
338 |
+
gr.Markdown(example)
|
339 |
+
concept_file_2 = gr.File(label="concept variations", file_types=["text"])
|
340 |
|
341 |
|
342 |
with gr.Tab("concept 3 (optional)"):
|
343 |
with gr.Group():
|
344 |
concept_image3 = gr.Image(label="Concept Image 3", type="numpy")
|
345 |
+
with gr.Row():
|
346 |
+
concept_name3 = gr.Dropdown(concept_options, label="concept 3", value= None, info="pick concept type")
|
347 |
+
with gr.Accordion("π‘ or use a new concept π", open=False):
|
348 |
+
gr.Markdown("1. upload a file with text variations of your concept (e.g. ask an LLM)")
|
349 |
+
gr.Markdown("2. prefereably with > 100 variations.")
|
350 |
+
with gr.Accordion("file example for the concept 'emotions'", open=False):
|
351 |
+
gr.Markdown(example)
|
352 |
+
concept_file_3 = gr.File(label="concept variations", file_types=["text"])
|
353 |
|
354 |
|
355 |
|