Commit
·
940a4d0
1
Parent(s):
94e174f
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,26 +52,26 @@ with mindseye:
|
|
| 52 |
text = gr.inputs.Textbox(placeholder="Try writing something..", label="Prompt")
|
| 53 |
#with gr.Column():
|
| 54 |
#with gr.Row():
|
| 55 |
-
with gr.Tabs():
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
#with gr.Row():
|
| 69 |
-
with gr.Tabs():
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
|
| 75 |
-
get_image_latent.click(text2image_latent, inputs=[text,steps,width,height,images,diversity], outputs=[image,gallery])
|
| 76 |
-
get_image_rudalle.click(text2image_rudalle, inputs=[text,aspect,model], outputs=image)
|
| 77 |
mindseye.launch(share=False)
|
|
|
|
| 52 |
text = gr.inputs.Textbox(placeholder="Try writing something..", label="Prompt")
|
| 53 |
#with gr.Column():
|
| 54 |
#with gr.Row():
|
| 55 |
+
#with gr.Tabs():
|
| 56 |
+
# with gr.TabItem("Latent Diffusion"):
|
| 57 |
+
# 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)
|
| 58 |
+
# width = gr.inputs.Slider(label="Width", default=256, step=32, maximum=256, minimum=32)
|
| 59 |
+
# height = gr.inputs.Slider(label="Height", default=256, step=32, maximum = 256, minimum=32)
|
| 60 |
+
# images = gr.inputs.Slider(label="Images - How many images you wish to generate", default=2, step=1, minimum=1, maximum=4)
|
| 61 |
+
# 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)
|
| 62 |
+
# get_image_latent = gr.Button("Generate Image",css=css_mt)
|
| 63 |
+
#
|
| 64 |
+
# with gr.TabItem("ruDALLE"):
|
| 65 |
+
# aspect = gr.inputs.Radio(label="Aspect Ratio", choices=["Square", "Horizontal", "Vertical"],default="Square")
|
| 66 |
+
# model = gr.inputs.Dropdown(label="Model", choices=["Surrealism","Realism", "Emoji"], default="Surrealism")
|
| 67 |
+
# get_image_rudalle = gr.Button("Generate Image",css=css_mt)
|
| 68 |
#with gr.Row():
|
| 69 |
+
#with gr.Tabs():
|
| 70 |
+
# with gr.TabItem("Image output"):
|
| 71 |
+
# image = gr.outputs.Image()
|
| 72 |
+
# with gr.TabItem("Gallery output"):
|
| 73 |
+
# gallery = gr.Gallery(label="Individual images")
|
| 74 |
|
| 75 |
+
#get_image_latent.click(text2image_latent, inputs=[text,steps,width,height,images,diversity], outputs=[image,gallery])
|
| 76 |
+
#get_image_rudalle.click(text2image_rudalle, inputs=[text,aspect,model], outputs=image)
|
| 77 |
mindseye.launch(share=False)
|