tombetthauser commited on
Commit
0b88f74
Β·
1 Parent(s): c107196

Update app.py

Browse files

Attempt to remove extraneous gradio columns and rows

Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -352,15 +352,15 @@ with gr.Blocks(css=css) as demo:
352
  </div>
353
  ''')
354
  with gr.Row():
355
- with gr.Column():
356
- gr.Markdown(f"")
357
- with gr.Row():
358
- image_blocks = []
359
- #for i, model in enumerate(models):
360
- with gr.Box().style(border=None):
361
- gr.HTML(assembleHTML(models))
362
- #title_block(model["token"], model["id"])
363
- #image_blocks.append(image_block(model["images"], model["concept_type"]))
364
  with gr.Column():
365
  with gr.Box():
366
  with gr.Row(elem_id="prompt_area").style(mobile_collapse=False, equal_height=True):
@@ -381,10 +381,10 @@ with gr.Blocks(css=css) as demo:
381
  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>")
382
  with gr.Row():
383
  gr.Examples(examples=examples, fn=infer_examples, inputs=[text], outputs=infer_outputs, cache_examples=True)
384
- with gr.Group(elem_id="share-btn-container"):
385
- community_icon = gr.HTML(community_icon_html, visible=False)
386
- loading_icon = gr.HTML(loading_icon_html, visible=False)
387
- share_button = gr.Button("Share to community", elem_id="share-btn", visible=False)
388
  checkbox_states = {}
389
  inputs = [text]
390
  btn.click(
 
352
  </div>
353
  ''')
354
  with gr.Row():
355
+ # with gr.Column():
356
+ # gr.Markdown(f"")
357
+ # with gr.Row():
358
+ # image_blocks = []
359
+ # #for i, model in enumerate(models):
360
+ # with gr.Box().style(border=None):
361
+ # gr.HTML(assembleHTML(models))
362
+ # #title_block(model["token"], model["id"])
363
+ # #image_blocks.append(image_block(model["images"], model["concept_type"]))
364
  with gr.Column():
365
  with gr.Box():
366
  with gr.Row(elem_id="prompt_area").style(mobile_collapse=False, equal_height=True):
 
381
  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>")
382
  with gr.Row():
383
  gr.Examples(examples=examples, fn=infer_examples, inputs=[text], outputs=infer_outputs, cache_examples=True)
384
+ # with gr.Group(elem_id="share-btn-container"):
385
+ # community_icon = gr.HTML(community_icon_html, visible=False)
386
+ # loading_icon = gr.HTML(loading_icon_html, visible=False)
387
+ # share_button = gr.Button("Share to community", elem_id="share-btn", visible=False)
388
  checkbox_states = {}
389
  inputs = [text]
390
  btn.click(