Spaces:
Runtime error
Runtime error
AchyuthGamer
commited on
Commit
·
9861dfe
1
Parent(s):
cce9c3a
Update app.py
Browse files
app.py
CHANGED
@@ -143,7 +143,7 @@ with gr.Blocks(css='style.css') as demo:
|
|
143 |
</div>
|
144 |
"""
|
145 |
)
|
146 |
-
|
147 |
with gr.Row(variant="compact"):
|
148 |
input_text = gr.Textbox(
|
149 |
label="Short Prompt",
|
@@ -168,24 +168,8 @@ with gr.Blocks(css='style.css') as demo:
|
|
168 |
run = gr.Button("Generate Images").style(full_width=False)
|
169 |
with gr.Row():
|
170 |
with gr.Row():
|
171 |
-
with gr.Blocks() as demo:
|
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.
|
189 |
gr.HTML(
|
190 |
"""
|
191 |
<div style="text-align: center; max-width: 1200px; margin: 0 auto;">
|
@@ -201,15 +185,93 @@ with gr.Blocks(css='style.css') as demo:
|
|
201 |
with gr.Row():
|
202 |
with gr.Row():
|
203 |
output1=gr.Image(label="PhotoMovieX",show_label=False,min_width=640)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
204 |
output2=gr.Image(label="PhotoMovieX",show_label=False,min_width=640)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
205 |
with gr.Row():
|
206 |
with gr.Row():
|
207 |
output3=gr.Image(label="PhotoMovieX",show_label=False,min_width=640)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
output4=gr.Image(label="PhotoMovieX",show_label=False,min_width=640)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
with gr.Row():
|
210 |
with gr.Row():
|
211 |
output5=gr.Image(label="PhotoMovieX",show_label=False,min_width=640)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
outputX=gr.Image(label="PhotoMovieX",show_label=False,min_width=640)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
#with gr.Row():
|
214 |
#with gr.Row():
|
215 |
#output0=gr.Image(label="PhotoMovieX",show_label=False,min_width=640)
|
@@ -228,7 +290,7 @@ with gr.Blocks(css='style.css') as demo:
|
|
228 |
gr.HTML(
|
229 |
"""
|
230 |
<div class="footer">
|
231 |
-
<p> Demo for <a href="https://huggingface.co/
|
232 |
</p>
|
233 |
</div>
|
234 |
<div class="acknowledgments" style="font-size: 115%; color: #ffffff;">
|
@@ -240,3 +302,4 @@ with gr.Blocks(css='style.css') as demo:
|
|
240 |
|
241 |
demo.launch(enable_queue=True, inline=True)
|
242 |
block.queue(concurrency_count=100)
|
|
|
|
143 |
</div>
|
144 |
"""
|
145 |
)
|
146 |
+
with gr.Column(elem_id="col-container"):
|
147 |
with gr.Row(variant="compact"):
|
148 |
input_text = gr.Textbox(
|
149 |
label="Short Prompt",
|
|
|
168 |
run = gr.Button("Generate Images").style(full_width=False)
|
169 |
with gr.Row():
|
170 |
with gr.Row():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
171 |
#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.
|
172 |
+
noise_level = gr.Slider(minimum=0.5, maximum=3, step=0.1, label="Noise Level (0.1 or less was generating the same pic 6 times! 🤣)")
|
173 |
gr.HTML(
|
174 |
"""
|
175 |
<div style="text-align: center; max-width: 1200px; margin: 0 auto;">
|
|
|
185 |
with gr.Row():
|
186 |
with gr.Row():
|
187 |
output1=gr.Image(label="PhotoMovieX",show_label=False,min_width=640)
|
188 |
+
image_output = gr.Gallery(
|
189 |
+
label='Output',
|
190 |
+
show_label=False,
|
191 |
+
elem_id='gallery'
|
192 |
+
).style(
|
193 |
+
grid=2,height='auto'
|
194 |
+
)
|
195 |
+
image_button = gr.Button("Flip")
|
196 |
+
image_button.click(
|
197 |
+
flip_image,
|
198 |
+
inputs=image_input,
|
199 |
+
outputs=image_output
|
200 |
+
)
|
201 |
output2=gr.Image(label="PhotoMovieX",show_label=False,min_width=640)
|
202 |
+
image_output = gr.Gallery(
|
203 |
+
label='Output',
|
204 |
+
show_label=False,
|
205 |
+
elem_id='gallery'
|
206 |
+
).style(
|
207 |
+
grid=2,height='auto'
|
208 |
+
)
|
209 |
+
image_button = gr.Button("Flip")
|
210 |
+
image_button.click(
|
211 |
+
flip_image,
|
212 |
+
inputs=image_input,
|
213 |
+
outputs=image_output
|
214 |
+
)
|
215 |
with gr.Row():
|
216 |
with gr.Row():
|
217 |
output3=gr.Image(label="PhotoMovieX",show_label=False,min_width=640)
|
218 |
+
image_output = gr.Gallery(
|
219 |
+
label='Output',
|
220 |
+
show_label=False,
|
221 |
+
elem_id='gallery'
|
222 |
+
).style(
|
223 |
+
grid=2,height='auto'
|
224 |
+
)
|
225 |
+
image_button = gr.Button("Flip")
|
226 |
+
image_button.click(
|
227 |
+
flip_image,
|
228 |
+
inputs=image_input,
|
229 |
+
outputs=image_output
|
230 |
+
)
|
231 |
output4=gr.Image(label="PhotoMovieX",show_label=False,min_width=640)
|
232 |
+
image_output = gr.Gallery(
|
233 |
+
label='Output',
|
234 |
+
show_label=False,
|
235 |
+
elem_id='gallery'
|
236 |
+
).style(
|
237 |
+
grid=2,height='auto'
|
238 |
+
)
|
239 |
+
image_button = gr.Button("Flip")
|
240 |
+
image_button.click(
|
241 |
+
flip_image,
|
242 |
+
inputs=image_input,
|
243 |
+
outputs=image_output
|
244 |
+
)
|
245 |
with gr.Row():
|
246 |
with gr.Row():
|
247 |
output5=gr.Image(label="PhotoMovieX",show_label=False,min_width=640)
|
248 |
+
image_output = gr.Gallery(
|
249 |
+
label='Output',
|
250 |
+
show_label=False,
|
251 |
+
elem_id='gallery'
|
252 |
+
).style(
|
253 |
+
grid=2,height='auto'
|
254 |
+
)
|
255 |
+
image_button = gr.Button("Flip")
|
256 |
+
image_button.click(
|
257 |
+
flip_image,
|
258 |
+
inputs=image_input,
|
259 |
+
outputs=image_output
|
260 |
+
)
|
261 |
outputX=gr.Image(label="PhotoMovieX",show_label=False,min_width=640)
|
262 |
+
image_output = gr.Gallery(
|
263 |
+
label='Output',
|
264 |
+
show_label=False,
|
265 |
+
elem_id='gallery'
|
266 |
+
).style(
|
267 |
+
grid=2,height='auto'
|
268 |
+
)
|
269 |
+
image_button = gr.Button("Flip")
|
270 |
+
image_button.click(
|
271 |
+
flip_image,
|
272 |
+
inputs=image_input,
|
273 |
+
outputs=image_output
|
274 |
+
)
|
275 |
#with gr.Row():
|
276 |
#with gr.Row():
|
277 |
#output0=gr.Image(label="PhotoMovieX",show_label=False,min_width=640)
|
|
|
290 |
gr.HTML(
|
291 |
"""
|
292 |
<div class="footer">
|
293 |
+
<p> Demo for <a href="https://huggingface.co/Yntec/photoMovieX">PhotoMovieX</a> Stable Diffusion model
|
294 |
</p>
|
295 |
</div>
|
296 |
<div class="acknowledgments" style="font-size: 115%; color: #ffffff;">
|
|
|
302 |
|
303 |
demo.launch(enable_queue=True, inline=True)
|
304 |
block.queue(concurrency_count=100)
|
305 |
+
|