Spaces:
Running
on
A10G
Running
on
A10G
Linoy Tsaban
commited on
Commit
·
4e7c20a
1
Parent(s):
a9cc7f7
Update app.py
Browse files
app.py
CHANGED
|
@@ -60,14 +60,40 @@ def get_example():
|
|
| 60 |
case = [
|
| 61 |
[
|
| 62 |
'Examples/gnochi_mirror.jpeg',
|
|
|
|
|
|
|
| 63 |
'',
|
| 64 |
-
'watercolor painting of a cat sitting next to a mirror',
|
| 65 |
100,
|
| 66 |
3.5,
|
| 67 |
36,
|
| 68 |
15,
|
| 69 |
-
|
| 70 |
-
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
return case
|
| 72 |
|
| 73 |
|
|
@@ -202,11 +228,11 @@ with gr.Blocks(css='style.css') as demo:
|
|
| 202 |
gr.Examples(
|
| 203 |
label='Examples',
|
| 204 |
examples=get_example(),
|
| 205 |
-
inputs=[input_image,
|
| 206 |
cfg_scale_tar,
|
| 207 |
skip,
|
| 208 |
-
cfg_scale_tar
|
| 209 |
-
|
| 210 |
],
|
| 211 |
outputs=[output_image ],
|
| 212 |
)
|
|
|
|
| 60 |
case = [
|
| 61 |
[
|
| 62 |
'Examples/gnochi_mirror.jpeg',
|
| 63 |
+
'Watercolor painting of a cat sitting next to a mirror',
|
| 64 |
+
'Examples/gnochi_mirror_watercolor_painting.png',
|
| 65 |
'',
|
|
|
|
| 66 |
100,
|
| 67 |
3.5,
|
| 68 |
36,
|
| 69 |
15,
|
| 70 |
+
|
| 71 |
+
],
|
| 72 |
+
[
|
| 73 |
+
'Examples/source_an_old_man.png',
|
| 74 |
+
'A bronze statue of an old man',
|
| 75 |
+
'Examples/ddpm_a_bronze_statue_of_an_old_man.png',
|
| 76 |
+
'',
|
| 77 |
+
100,
|
| 78 |
+
3.5,
|
| 79 |
+
36,
|
| 80 |
+
15,
|
| 81 |
+
|
| 82 |
+
],
|
| 83 |
+
[
|
| 84 |
+
'Examples/source_a_ceramic_vase_with_yellow_flowers.jpeg',
|
| 85 |
+
'A pink ceramic vase with a wheat bouquet',
|
| 86 |
+
'Examples/ddpm_a_pink_ceramic_vase_with_a_wheat_bouquet.png',
|
| 87 |
+
'',
|
| 88 |
+
100,
|
| 89 |
+
3.5,
|
| 90 |
+
36,
|
| 91 |
+
15,
|
| 92 |
+
|
| 93 |
+
]
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
]
|
| 97 |
return case
|
| 98 |
|
| 99 |
|
|
|
|
| 228 |
gr.Examples(
|
| 229 |
label='Examples',
|
| 230 |
examples=get_example(),
|
| 231 |
+
inputs=[input_image, tar_prompt,output_image, src_prompt,steps,
|
| 232 |
cfg_scale_tar,
|
| 233 |
skip,
|
| 234 |
+
cfg_scale_tar
|
| 235 |
+
|
| 236 |
],
|
| 237 |
outputs=[output_image ],
|
| 238 |
)
|