tombetthauser commited on
Commit
e55b1e1
Β·
1 Parent(s): 09fba9b

Clean up text for ArtBot tab and make some models private

Browse files
Files changed (1) hide show
  1. app.py +14 -7
app.py CHANGED
@@ -486,13 +486,19 @@ import random
486
  with gr.Blocks(css=".gradio-container {max-width: 650px}") as artbot_1:
487
  gr.Markdown('''
488
  # <span style="display: inline-block; height: 30px; width: 30px; margin-bottom: -3px; border-radius: 7px; background-size: 50px; background-position: center; background-image: url(http://www.astronaut.horse/thumbnail.jpg)"></span> Astronaut Horse
489
-
490
- These images are generated in real time by a generative machine learning model fine-tuned on input artworks chosen by collaborating visual artists. The hardware resources to run this process have been generously provided at no cost by Hugging Face via a Community GPU Grant. For full control over all input parameters see the other tabs on this application. For more images and information on the project see the main project page or the discord community linked below. The images you generate here are not recorded unless you save them, they belong to everyone and no one.
491
- <br><br>
492
- <a href="http://www.astronaut.horse">http://www.astronaut.horse</a>
493
- <br>
494
- <a href="https://discord.gg/ZctfW4SvGw">https://discord.com</a><br>
495
  ''')
 
 
 
 
 
 
 
 
 
 
 
 
496
 
497
  # with gr.Row():
498
  # dropdown = gr.Dropdown([dropdown for dropdown in list(DROPDOWNS) if 'ahx-model' in dropdown], label="choose style...")
@@ -502,7 +508,8 @@ with gr.Blocks(css=".gradio-container {max-width: 650px}") as artbot_1:
502
 
503
  go_button = gr.Button("generate image", elem_id="go-button")
504
  output = gr.Image(elem_id="output-image")
505
- output_text = gr.Text(elem_id="output-text")
 
506
  # go_button.click(fn=simple_image_prompt, inputs=[prompt, dropdown, size_dropdown], outputs=[output, output_text])
507
  go_button.click(fn=artbot_image, inputs=[], outputs=[output, output_text])
508
 
 
486
  with gr.Blocks(css=".gradio-container {max-width: 650px}") as artbot_1:
487
  gr.Markdown('''
488
  # <span style="display: inline-block; height: 30px; width: 30px; margin-bottom: -3px; border-radius: 7px; background-size: 50px; background-position: center; background-image: url(http://www.astronaut.horse/thumbnail.jpg)"></span> Astronaut Horse
 
 
 
 
 
 
489
  ''')
490
+ with gr.Accordion(label='project information...', open=False):
491
+ gr.Markdown('''
492
+ These images are collaborations between visual artists and Stable Diffusion, a free and open-source generative AI model fine-tuned on input artworks chosen by the artists. The images are generated in real time and cannot be reproduced unless you choose to save them.
493
+ <br><br>
494
+ The hardware resources to run this process have been generously provided at no cost by Hugging Face via a Community GPU Grant. For full control over all input parameters see the other tabs on this application. For more images and information on the project see the links below.
495
+ <br><br>
496
+ The images you generate here are not recorded unless you save them, they belong to everyone and no one.
497
+ <br><br>
498
+ <a href="http://www.astronaut.horse">http://www.astronaut.horse</a>
499
+ <br>
500
+ <a href="https://discord.gg/ZctfW4SvGw">https://discord.com</a><br>
501
+ ''')
502
 
503
  # with gr.Row():
504
  # dropdown = gr.Dropdown([dropdown for dropdown in list(DROPDOWNS) if 'ahx-model' in dropdown], label="choose style...")
 
508
 
509
  go_button = gr.Button("generate image", elem_id="go-button")
510
  output = gr.Image(elem_id="output-image")
511
+ with gr.Accordion(label='image information...', open=False):
512
+ output_text = gr.Text(elem_id="output-text")
513
  # go_button.click(fn=simple_image_prompt, inputs=[prompt, dropdown, size_dropdown], outputs=[output, output_text])
514
  go_button.click(fn=artbot_image, inputs=[], outputs=[output, output_text])
515