multimodalart HF staff commited on
Commit
523a420
1 Parent(s): 09e1d9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -18
app.py CHANGED
@@ -50,26 +50,17 @@ with mindseye:
50
  gr.Markdown("<h1>MindsEye Lite <small><small>run multiple text-to-image models in one place</small></small></h1><p>MindsEye Lite orchestrates multiple text-to-image Hugging Face Spaces in one convenient space, so you can try different models. This work carries the spirit of <a href='https://multimodal.art/mindseye' target='_blank'>MindsEye Beta</a>, a tool to run multiple models with a single UI, but adjusted to the current hardware limitations of Spaces. MindsEye Lite was created by <a style='color: rgb(99, 102, 241);font-weight:bold' href='https://twitter.com/multimodalart' target='_blank'>@multimodalart</a>, keep up with the <a style='color: rgb(99, 102, 241);' href='https://multimodal.art/news' target='_blank'>latest multimodal ai art news here</a> and consider <a style='color: rgb(99, 102, 241);' href='https://www.patreon.com/multimodalart' target='_blank'>supporting us on Patreon</a></div></p>")
51
  #gr.Markdown("<style>.mx-auto.container .gr-form-gap {flex-direction: row; gap: calc(1rem * calc(1 - var(--tw-space-y-reverse)));} .mx-auto.container .gr-form-gap .flex-col, .mx-auto.container .gr-form-gap .gr-box{width: 100%}</style>")
52
  text = gr.inputs.Textbox(placeholder="Try writing something..", label="Prompt", default="A mecha robot in a favela")
 
53
  with gr.Column():
 
54
  with gr.Tabs():
55
- with gr.TabItem("Latent Diffusion"):
56
- pass
57
- with gr.Column():
58
- with gr.Tabs():
59
- with gr.TabItem("Image output"):
60
- pass
61
- # image = gr.outputs.Image()
62
-
63
- #with gr.Column():
64
- #with gr.Row():
65
- #with gr.Tabs():
66
- # with gr.TabItem("Latent Diffusion"):
67
- # steps = gr.inputs.Slider(label="Steps - more steps can increase quality but will take longer to generate",default=45,maximum=50,minimum=1,step=1)
68
- # width = gr.inputs.Slider(label="Width", default=256, step=32, maximum=256, minimum=32)
69
- # height = gr.inputs.Slider(label="Height", default=256, step=32, maximum = 256, minimum=32)
70
- # images = gr.inputs.Slider(label="Images - How many images you wish to generate", default=2, step=1, minimum=1, maximum=4)
71
- # diversity = gr.inputs.Slider(label="Diversity scale - How different from one another you wish the images to be",default=5.0, minimum=1.0, maximum=15.0)
72
- # get_image_latent = gr.Button("Generate Image",css=css_mt)
73
  #
74
  # with gr.TabItem("ruDALLE"):
75
  # aspect = gr.inputs.Radio(label="Aspect Ratio", choices=["Square", "Horizontal", "Vertical"],default="Square")
 
50
  gr.Markdown("<h1>MindsEye Lite <small><small>run multiple text-to-image models in one place</small></small></h1><p>MindsEye Lite orchestrates multiple text-to-image Hugging Face Spaces in one convenient space, so you can try different models. This work carries the spirit of <a href='https://multimodal.art/mindseye' target='_blank'>MindsEye Beta</a>, a tool to run multiple models with a single UI, but adjusted to the current hardware limitations of Spaces. MindsEye Lite was created by <a style='color: rgb(99, 102, 241);font-weight:bold' href='https://twitter.com/multimodalart' target='_blank'>@multimodalart</a>, keep up with the <a style='color: rgb(99, 102, 241);' href='https://multimodal.art/news' target='_blank'>latest multimodal ai art news here</a> and consider <a style='color: rgb(99, 102, 241);' href='https://www.patreon.com/multimodalart' target='_blank'>supporting us on Patreon</a></div></p>")
51
  #gr.Markdown("<style>.mx-auto.container .gr-form-gap {flex-direction: row; gap: calc(1rem * calc(1 - var(--tw-space-y-reverse)));} .mx-auto.container .gr-form-gap .flex-col, .mx-auto.container .gr-form-gap .gr-box{width: 100%}</style>")
52
  text = gr.inputs.Textbox(placeholder="Try writing something..", label="Prompt", default="A mecha robot in a favela")
53
+
54
  with gr.Column():
55
+ with gr.Row():
56
  with gr.Tabs():
57
+ with gr.TabItem("Latent Diffusion"):
58
+ steps = gr.inputs.Slider(label="Steps - more steps can increase quality but will take longer to generate",default=45,maximum=50,minimum=1,step=1)
59
+ width = gr.inputs.Slider(label="Width", default=256, step=32, maximum=256, minimum=32)
60
+ height = gr.inputs.Slider(label="Height", default=256, step=32, maximum = 256, minimum=32)
61
+ images = gr.inputs.Slider(label="Images - How many images you wish to generate", default=2, step=1, minimum=1, maximum=4)
62
+ diversity = gr.inputs.Slider(label="Diversity scale - How different from one another you wish the images to be",default=5.0, minimum=1.0, maximum=15.0)
63
+ get_image_latent = gr.Button("Generate Image",css=css_mt)
 
 
 
 
 
 
 
 
 
 
 
64
  #
65
  # with gr.TabItem("ruDALLE"):
66
  # aspect = gr.inputs.Radio(label="Aspect Ratio", choices=["Square", "Horizontal", "Vertical"],default="Square")