tombetthauser commited on
Commit
7b030d7
Β·
1 Parent(s): f7020e2

Update app.py

Browse files

Revert with only html edits

Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -384,15 +384,15 @@ with gr.Blocks(css=css) as demo:
384
  </div>
385
  ''')
386
  with gr.Row():
387
- # with gr.Column():
388
- # gr.Markdown(f"### Navigate the top 100 Textual-Inversion community trained concepts. Use 600+ from [The Library](https://huggingface.co/sd-concepts-library)")
389
- # with gr.Row():
390
- # image_blocks = []
391
- # #for i, model in enumerate(models):
392
- # with gr.Box().style(border=None):
393
- # gr.HTML(assembleHTML(models))
394
- # #title_block(model["token"], model["id"])
395
- # #image_blocks.append(image_block(model["images"], model["concept_type"]))
396
  with gr.Column():
397
  with gr.Box():
398
  with gr.Row(elem_id="prompt_area").style(mobile_collapse=False, equal_height=True):
@@ -403,16 +403,16 @@ with gr.Blocks(css=css) as demo:
403
  rounded=(True, False, False, True),
404
  container=False,
405
  )
406
- btn = gr.Button("generate image",elem_id="run_btn").style(
407
  margin=False,
408
  rounded=(False, True, True, False),
409
  )
410
  with gr.Row().style():
411
  infer_outputs = gr.Gallery(show_label=False, elem_id="generated-gallery").style(grid=[2], height="512px")
412
- # with gr.Row():
413
- # gr.HTML("<p style=\"font-size: 95%;margin-top: .75em\">Prompting may not work as you are used to. <code>objects</code> may need the concept added at the end, <code>styles</code> may work better at the beginning. You can navigate on <a href='https://lexica.art'>lexica.art</a> to get inspired on prompts</p>")
414
- # with gr.Row():
415
- # gr.Examples(examples=examples, fn=infer_examples, inputs=[text], outputs=infer_outputs, cache_examples=True)
416
  with gr.Group(elem_id="share-btn-container"):
417
  community_icon = gr.HTML(community_icon_html, visible=False)
418
  loading_icon = gr.HTML(loading_icon_html, visible=False)
 
384
  </div>
385
  ''')
386
  with gr.Row():
387
+ with gr.Column():
388
+ gr.Markdown(f"### Navigate the top 100 Textual-Inversion community trained concepts. Use 600+ from [The Library](https://huggingface.co/sd-concepts-library)")
389
+ with gr.Row():
390
+ image_blocks = []
391
+ #for i, model in enumerate(models):
392
+ with gr.Box().style(border=None):
393
+ gr.HTML(assembleHTML(models))
394
+ #title_block(model["token"], model["id"])
395
+ #image_blocks.append(image_block(model["images"], model["concept_type"]))
396
  with gr.Column():
397
  with gr.Box():
398
  with gr.Row(elem_id="prompt_area").style(mobile_collapse=False, equal_height=True):
 
403
  rounded=(True, False, False, True),
404
  container=False,
405
  )
406
+ btn = gr.Button("Run",elem_id="run_btn").style(
407
  margin=False,
408
  rounded=(False, True, True, False),
409
  )
410
  with gr.Row().style():
411
  infer_outputs = gr.Gallery(show_label=False, elem_id="generated-gallery").style(grid=[2], height="512px")
412
+ with gr.Row():
413
+ gr.HTML("<p style=\"font-size: 95%;margin-top: .75em\">Prompting may not work as you are used to. <code>objects</code> may need the concept added at the end, <code>styles</code> may work better at the beginning. You can navigate on <a href='https://lexica.art'>lexica.art</a> to get inspired on prompts</p>")
414
+ with gr.Row():
415
+ gr.Examples(examples=examples, fn=infer_examples, inputs=[text], outputs=infer_outputs, cache_examples=True)
416
  with gr.Group(elem_id="share-btn-container"):
417
  community_icon = gr.HTML(community_icon_html, visible=False)
418
  loading_icon = gr.HTML(loading_icon_html, visible=False)