linoyts HF Staff commited on
Commit
3222066
Β·
verified Β·
1 Parent(s): cd99776

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -15
app.py CHANGED
@@ -311,35 +311,35 @@ following the algorithm proposed in [*IP-Composer: Semantic Composition of Visua
311
  with gr.Group():
312
  concept_image1 = gr.Image(label="Concept Image 1", type="numpy")
313
  concept_name1 = gr.Dropdown(concept_options, label="concept 1", value=None, info="concept type")
314
- gr.Markdown("πŸ’‘ add a new concept πŸ‘‡")
315
- with gr.Accordion("example + instrcutions", open=False):
316
  gr.Markdown("1. upload a file with text variations of your concept (e.g. ask an LLM)")
317
- gr.Markdown("2. prefereably with > 100 variations. see file example for the concept 'emotions': ")
318
- gr.Markdown(example)
319
- concept_file_1 = gr.File(label="concept variations", file_types=["text"])
 
320
 
321
  with gr.Tab("concept 2 - optional"):
322
  with gr.Group():
323
  concept_image2 = gr.Image(label="Concept Image 2", type="numpy")
324
  concept_name2 = gr.Dropdown(concept_options, label="concept 2", value=None, info="concept type")
325
- gr.Markdown("πŸ’‘ add a new concept πŸ‘‡")
326
- with gr.Accordion("example + instrcutions", open=False):
327
  gr.Markdown("1. upload a file with text variations of your concept (e.g. ask an LLM)")
328
- gr.Markdown("2. prefereably with > 100 variations. see file example for the concept 'emotions': ")
329
- gr.Markdown(example)
330
- concept_file_2 = gr.File(label="concept variations", file_types=["text"])
 
331
 
332
 
333
  with gr.Tab("concept 3 - optional"):
334
  with gr.Group():
335
  concept_image3 = gr.Image(label="Concept Image 3", type="numpy")
336
  concept_name3 = gr.Dropdown(concept_options, label="concept 3", value= None, info="concept type")
337
- gr.Markdown("πŸ’‘ add a new concept πŸ‘‡")
338
- with gr.Accordion("example + instrcutions", open=False):
339
  gr.Markdown("1. upload a file with text variations of your concept (e.g. ask an LLM)")
340
- gr.Markdown("2. prefereably with > 100 variations. see file example for the concept 'emotions': ")
341
- gr.Markdown(example)
342
- concept_file_3 = gr.File(label="concept variations", file_types=["text"])
 
343
 
344
 
345
 
 
311
  with gr.Group():
312
  concept_image1 = gr.Image(label="Concept Image 1", type="numpy")
313
  concept_name1 = gr.Dropdown(concept_options, label="concept 1", value=None, info="concept type")
314
+ with gr.Accordion("πŸ’‘ add a new concept πŸ‘‡", open=False):
 
315
  gr.Markdown("1. upload a file with text variations of your concept (e.g. ask an LLM)")
316
+ gr.Markdown("2. prefereably with > 100 variations.")
317
+ with gr.Accordion("file example for the concept 'emotions'"):
318
+ gr.Markdown(example)
319
+ concept_file_1 = gr.File(label="concept variations", file_types=["text"])
320
 
321
  with gr.Tab("concept 2 - optional"):
322
  with gr.Group():
323
  concept_image2 = gr.Image(label="Concept Image 2", type="numpy")
324
  concept_name2 = gr.Dropdown(concept_options, label="concept 2", value=None, info="concept type")
325
+ with gr.Accordion("πŸ’‘ add a new concept πŸ‘‡", open=False):
 
326
  gr.Markdown("1. upload a file with text variations of your concept (e.g. ask an LLM)")
327
+ gr.Markdown("2. prefereably with > 100 variations.")
328
+ with gr.Accordion("file example for the concept 'emotions'"):
329
+ gr.Markdown(example)
330
+ concept_file_2 = gr.File(label="concept variations", file_types=["text"])
331
 
332
 
333
  with gr.Tab("concept 3 - optional"):
334
  with gr.Group():
335
  concept_image3 = gr.Image(label="Concept Image 3", type="numpy")
336
  concept_name3 = gr.Dropdown(concept_options, label="concept 3", value= None, info="concept type")
337
+ with gr.Accordion("πŸ’‘ add a new concept πŸ‘‡", open=False):
 
338
  gr.Markdown("1. upload a file with text variations of your concept (e.g. ask an LLM)")
339
+ gr.Markdown("2. prefereably with > 100 variations.")
340
+ with gr.Accordion("file example for the concept 'emotions'"):
341
+ gr.Markdown(example)
342
+ concept_file_3 = gr.File(label="concept variations", file_types=["text"])
343
 
344
 
345