Linoy Tsaban commited on
Commit
33f6feb
1 Parent(s): 7bb0fbf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -4
app.py CHANGED
@@ -59,7 +59,12 @@ def get_example():
59
  'examples/source_a_man_wearing_a_brown_hoodie_in_a_crowded_street.jpeg',
60
  'a man wearing a brown hoodie in a crowded street',
61
  'a robot wearing a brown hoodie in a crowded street',
 
 
 
62
  '+painting',
 
 
63
  'examples/ddpm_a_robot_wearing_a_brown_hoodie_in_a_crowded_street.png',
64
  'examples/ddpm_sega_painting_of_a_robot_wearing_a_brown_hoodie_in_a_crowded_street.png'
65
  ],
@@ -67,7 +72,12 @@ def get_example():
67
  'examples/source_wall_with_framed_photos.jpeg',
68
  '',
69
  '',
 
 
 
70
  '+pink drawings of muffins',
 
 
71
  'examples/ddpm_wall_with_framed_photos.png',
72
  'examples/ddpm_sega_plus_pink_drawings_of_muffins.png'
73
  ],
@@ -75,7 +85,12 @@ def get_example():
75
  'examples/source_an_empty_room_with_concrete_walls.jpg',
76
  'an empty room with concrete walls',
77
  'glass walls',
 
 
 
78
  '+giant elephant',
 
 
79
  'examples/ddpm_glass_walls.png',
80
  'examples/ddpm_sega_glass_walls_gian_elephant.png'
81
  ]]
@@ -252,10 +267,7 @@ with gr.Blocks() as demo:
252
  sega_edit_guidance,
253
  warm_up,
254
  # neg_guidance,
255
- left,
256
- right,
257
- top,
258
- bottom],
259
  outputs=[ddpm_edited_image, sega_edited_image],
260
  fn=edit,
261
  cache_examples=True)
 
59
  'examples/source_a_man_wearing_a_brown_hoodie_in_a_crowded_street.jpeg',
60
  'a man wearing a brown hoodie in a crowded street',
61
  'a robot wearing a brown hoodie in a crowded street',
62
+ 100,
63
+ 36,
64
+ 15,
65
  '+painting',
66
+ 10,
67
+ 1,
68
  'examples/ddpm_a_robot_wearing_a_brown_hoodie_in_a_crowded_street.png',
69
  'examples/ddpm_sega_painting_of_a_robot_wearing_a_brown_hoodie_in_a_crowded_street.png'
70
  ],
 
72
  'examples/source_wall_with_framed_photos.jpeg',
73
  '',
74
  '',
75
+ 100,
76
+ 36,
77
+ 15,
78
  '+pink drawings of muffins',
79
+ 10,
80
+ 1,
81
  'examples/ddpm_wall_with_framed_photos.png',
82
  'examples/ddpm_sega_plus_pink_drawings_of_muffins.png'
83
  ],
 
85
  'examples/source_an_empty_room_with_concrete_walls.jpg',
86
  'an empty room with concrete walls',
87
  'glass walls',
88
+ 100,
89
+ 36,
90
+ 17,
91
  '+giant elephant',
92
+ 10,
93
+ 1,
94
  'examples/ddpm_glass_walls.png',
95
  'examples/ddpm_sega_glass_walls_gian_elephant.png'
96
  ]]
 
267
  sega_edit_guidance,
268
  warm_up,
269
  # neg_guidance,
270
+ ],
 
 
 
271
  outputs=[ddpm_edited_image, sega_edited_image],
272
  fn=edit,
273
  cache_examples=True)