Spaces:
Runtime error
Runtime error
AchyuthGamer
commited on
Commit
·
5807fe3
1
Parent(s):
c3f3916
Update app.py
Browse files
app.py
CHANGED
@@ -144,22 +144,6 @@ with gr.Blocks(css='style.css') as demo:
|
|
144 |
"""
|
145 |
)
|
146 |
with gr.Blocks() as demo:
|
147 |
-
with gr.Row():
|
148 |
-
image_input = gr.Image()
|
149 |
-
# image_output = gr.Image() # download [ok]
|
150 |
-
image_output = gr.Gallery(
|
151 |
-
label='Output',
|
152 |
-
show_label=False,
|
153 |
-
elem_id='gallery'
|
154 |
-
).style(
|
155 |
-
grid=2,height='auto'
|
156 |
-
)
|
157 |
-
image_button = gr.Button("Flip")
|
158 |
-
image_button.click(
|
159 |
-
flip_image,
|
160 |
-
inputs=image_input,
|
161 |
-
outputs=image_output
|
162 |
-
)
|
163 |
with gr.Column(elem_id="col-container"):
|
164 |
with gr.Row(variant="compact"):
|
165 |
input_text = gr.Textbox(
|
@@ -185,6 +169,21 @@ with gr.Blocks(css='style.css') as demo:
|
|
185 |
run = gr.Button("Generate Images").style(full_width=False)
|
186 |
with gr.Row():
|
187 |
with gr.Row():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
#Now that the first box generates a picture with noise=0 having the default at 0 makes no sense as it'd generate the same image 6 times.
|
189 |
noise_level = gr.Slider(minimum=0.2, maximum=3, step=0.1, label="Noise Level (0.1 or less was generating the same pic 6 times! 🤣)")
|
190 |
gr.HTML(
|
|
|
144 |
"""
|
145 |
)
|
146 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
with gr.Column(elem_id="col-container"):
|
148 |
with gr.Row(variant="compact"):
|
149 |
input_text = gr.Textbox(
|
|
|
169 |
run = gr.Button("Generate Images").style(full_width=False)
|
170 |
with gr.Row():
|
171 |
with gr.Row():
|
172 |
+
image_input = gr.Image()
|
173 |
+
# image_output = gr.Image() # download [ok]
|
174 |
+
image_output = gr.Gallery(
|
175 |
+
label='Output',
|
176 |
+
show_label=False,
|
177 |
+
elem_id='gallery'
|
178 |
+
).style(
|
179 |
+
grid=2,height='auto'
|
180 |
+
)
|
181 |
+
image_button = gr.Button("Flip")
|
182 |
+
image_button.click(
|
183 |
+
flip_image,
|
184 |
+
inputs=image_input,
|
185 |
+
outputs=image_output
|
186 |
+
)
|
187 |
#Now that the first box generates a picture with noise=0 having the default at 0 makes no sense as it'd generate the same image 6 times.
|
188 |
noise_level = gr.Slider(minimum=0.2, maximum=3, step=0.1, label="Noise Level (0.1 or less was generating the same pic 6 times! 🤣)")
|
189 |
gr.HTML(
|