linoyts HF Staff commited on
Commit
f045879
Β·
verified Β·
1 Parent(s): ceefe41

change concept type/upload ui

Browse files
Files changed (1) hide show
  1. app.py +24 -21
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
- concept_name1 = gr.Dropdown(concept_options, label="concept 1", value=None, info="concept type")
321
- with gr.Accordion("πŸ’‘ add a new concept πŸ‘‡", open=False):
322
- gr.Markdown("1. upload a file with text variations of your concept (e.g. ask an LLM)")
323
- gr.Markdown("2. prefereably with > 100 variations.")
324
- with gr.Accordion("file example for the concept 'emotions'", open=False):
325
- gr.Markdown(example)
326
- concept_file_1 = gr.File(label="concept variations", file_types=["text"])
 
327
 
328
  with gr.Tab("concept 2 (optional)"):
329
  with gr.Group():
330
  concept_image2 = gr.Image(label="Concept Image 2", type="numpy")
331
- concept_name2 = gr.Dropdown(concept_options, label="concept 2", value=None, info="concept type")
332
- with gr.Accordion("πŸ’‘ add a new concept πŸ‘‡", open=False):
333
- gr.Markdown("1. upload a file with text variations of your concept (e.g. ask an LLM)")
334
- gr.Markdown("2. prefereably with > 100 variations.")
335
- with gr.Accordion("file example for the concept 'emotions'", open=False):
336
- gr.Markdown(example)
337
- concept_file_2 = gr.File(label="concept variations", file_types=["text"])
 
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
- concept_name3 = gr.Dropdown(concept_options, label="concept 3", value= None, info="concept type")
344
- with gr.Accordion("πŸ’‘ add a new concept πŸ‘‡", open=False):
345
- gr.Markdown("1. upload a file with text variations of your concept (e.g. ask an LLM)")
346
- gr.Markdown("2. prefereably with > 100 variations.")
347
- with gr.Accordion("file example for the concept 'emotions'", open=False):
348
- gr.Markdown(example)
349
- concept_file_3 = gr.File(label="concept variations", file_types=["text"])
 
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