Spaces:
Running
on
Zero
Running
on
Zero
prithivMLmods
commited on
Commit
•
443b30e
1
Parent(s):
96f038d
Update app.py
Browse files
app.py
CHANGED
@@ -10,9 +10,7 @@ import torch
|
|
10 |
from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
|
11 |
|
12 |
DESCRIPTIONx = """
|
13 |
-
|
14 |
## TEXT 2 IMAGE PLAYGROUND 🥠
|
15 |
-
|
16 |
"""
|
17 |
|
18 |
css = '''
|
@@ -127,12 +125,12 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
127 |
|
128 |
with gr.Row():
|
129 |
prompt = gr.Text(
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
run_button = gr.Button("Run🚀", scale=0)
|
137 |
result = gr.Gallery(label="Result", columns=1, show_label=False)
|
138 |
|
@@ -142,9 +140,9 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
142 |
choices=list(MODEL_OPTIONS.keys()),
|
143 |
value="RealVisXL_V4.0_Lightning"
|
144 |
)
|
145 |
-
with gr.Column(scale=3):
|
146 |
-
with gr.Accordion("Advanced options", open=True):
|
147 |
|
|
|
|
|
148 |
num_images = gr.Slider(
|
149 |
label="Number of Images",
|
150 |
minimum=1,
|
|
|
10 |
from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
|
11 |
|
12 |
DESCRIPTIONx = """
|
|
|
13 |
## TEXT 2 IMAGE PLAYGROUND 🥠
|
|
|
14 |
"""
|
15 |
|
16 |
css = '''
|
|
|
125 |
|
126 |
with gr.Row():
|
127 |
prompt = gr.Text(
|
128 |
+
label="Prompt",
|
129 |
+
show_label=False,
|
130 |
+
max_lines=1,
|
131 |
+
placeholder="Enter your prompt",
|
132 |
+
container=False,
|
133 |
+
)
|
134 |
run_button = gr.Button("Run🚀", scale=0)
|
135 |
result = gr.Gallery(label="Result", columns=1, show_label=False)
|
136 |
|
|
|
140 |
choices=list(MODEL_OPTIONS.keys()),
|
141 |
value="RealVisXL_V4.0_Lightning"
|
142 |
)
|
|
|
|
|
143 |
|
144 |
+
with gr.Accordion("Advanced options", open=True):
|
145 |
+
with gr.Column(scale=3):
|
146 |
num_images = gr.Slider(
|
147 |
label="Number of Images",
|
148 |
minimum=1,
|