Linoy Tsaban
commited on
Commit
·
fda782c
1
Parent(s):
b121f18
Update app.py
Browse files
app.py
CHANGED
|
@@ -57,13 +57,14 @@ sd_pipe.scheduler = DDIMScheduler.from_config(sd_model_id, subfolder = "schedule
|
|
| 57 |
def get_example():
|
| 58 |
case = [
|
| 59 |
[
|
| 60 |
-
'
|
| 61 |
-
'
|
| 62 |
-
'
|
| 63 |
100,
|
|
|
|
| 64 |
36,
|
| 65 |
15,
|
| 66 |
-
'
|
| 67 |
],]
|
| 68 |
return case
|
| 69 |
|
|
@@ -204,19 +205,19 @@ with gr.Blocks() as demo:
|
|
| 204 |
fn = reset
|
| 205 |
)
|
| 206 |
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
|
| 221 |
|
| 222 |
|
|
|
|
| 57 |
def get_example():
|
| 58 |
case = [
|
| 59 |
[
|
| 60 |
+
'Examples/gnochi_mirror.jpeg',
|
| 61 |
+
'',
|
| 62 |
+
'',
|
| 63 |
100,
|
| 64 |
+
3.5,
|
| 65 |
36,
|
| 66 |
15,
|
| 67 |
+
'Examples/gnochi_mirror_reconstrcution.png',
|
| 68 |
],]
|
| 69 |
return case
|
| 70 |
|
|
|
|
| 205 |
fn = reset
|
| 206 |
)
|
| 207 |
|
| 208 |
+
gr.Examples(
|
| 209 |
+
label='Examples',
|
| 210 |
+
examples=get_example(),
|
| 211 |
+
inputs=[input_image, src_prompt, tar_prompt, steps,
|
| 212 |
+
src_cfg_scale,
|
| 213 |
+
skip,
|
| 214 |
+
tar_cfg_scale,
|
| 215 |
+
inverted_image,
|
| 216 |
+
],
|
| 217 |
+
outputs=[inverted_image],
|
| 218 |
+
# fn=edit,
|
| 219 |
+
# cache_examples=True
|
| 220 |
+
)
|
| 221 |
|
| 222 |
|
| 223 |
|