Linoy Tsaban commited on
Commit
b12e6a1
1 Parent(s): 675e3a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -56,12 +56,12 @@ cache_examples = True
56
  def get_example():
57
  case = [
58
  [
59
- 'examples/.jpg',
60
- '',
61
- '',
62
- '',
63
- 'examples/.png',
64
- 'examples/.png'
65
  ]]
66
  return case
67
 
@@ -181,12 +181,12 @@ with gr.Blocks() as demo:
181
  outputs=[ddpm_edited_image, sega_edited_image],
182
  )
183
 
184
- # gr.Examples(
185
- # label='Examples',
186
- # examples=get_example(),
187
- # inputs=[img_input, src_prompt, tar_prompt, edit_concept,
188
- # ddpm_output, ddpm_sega_output],
189
- # outputs=[img_output])
190
 
191
 
192
 
 
56
  def get_example():
57
  case = [
58
  [
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
  ]]
66
  return case
67
 
 
181
  outputs=[ddpm_edited_image, sega_edited_image],
182
  )
183
 
184
+ gr.Examples(
185
+ label='Examples',
186
+ examples=get_example(),
187
+ inputs=[input_image, src_prompt, tar_prompt, edit_concept,
188
+ ddpm_output, ddpm_sega_output],
189
+ outputs=[ddpm_edited_image, sega_edited_image])
190
 
191
 
192