Commit
·
76dfd76
1
Parent(s):
300be0b
attempt tabs
Browse files
app.py
CHANGED
@@ -51,8 +51,8 @@ with gr.Blocks() as mindseye:
|
|
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")
|
53 |
#with gr.Column():
|
54 |
-
with gr.Row():
|
55 |
-
|
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)
|
@@ -65,8 +65,8 @@ with gr.Blocks() as mindseye:
|
|
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 |
-
|
70 |
with gr.TabItem("Image output"):
|
71 |
image = gr.outputs.Image()
|
72 |
with gr.TabItem("Gallery output"):
|
|
|
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")
|
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)
|
|
|
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"):
|