Linoy Tsaban commited on
Commit
71127a0
1 Parent(s): 77d316c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -116,7 +116,9 @@ with gr.Blocks() as demo:
116
 
117
  with gr.Row():
118
  with gr.Column(scale=1, min_width=100):
119
- generate_button = gr.Button("Generate")
 
 
120
  # with gr.Column(scale=1, min_width=100):
121
  # reset_button = gr.Button("Reset")
122
  # with gr.Column(scale=3):
@@ -132,7 +134,7 @@ with gr.Blocks() as demo:
132
  steps = gr.Number(value=100, precision=0, label="Steps", interactive=True)
133
  src_cfg_scale = gr.Number(value=3.5, label=f"Source CFG", interactive=True)
134
  # reconstruction
135
- skip = gr.Number(value=100, precision=0, label="Skip", interactive=True)
136
  tar_cfg_scale = gr.Number(value=15, label=f"Reconstruction CFG", interactive=True)
137
  # edit
138
  edit_concept = gr.Textbox(lines=1, label="Edit Concept", interactive=True)
@@ -157,7 +159,7 @@ with gr.Blocks() as demo:
157
  warm_up,
158
  neg_guidance
159
  ],
160
- outputs=[input_image, ddpm_edited_image, sega_edited_image],
161
  )
162
 
163
 
 
116
 
117
  with gr.Row():
118
  with gr.Column(scale=1, min_width=100):
119
+ generate_button = gr.Button("Invert")
120
+ with gr.Column(scale=1, min_width=100):
121
+ edit_button = gr.Button("Edit")
122
  # with gr.Column(scale=1, min_width=100):
123
  # reset_button = gr.Button("Reset")
124
  # with gr.Column(scale=3):
 
134
  steps = gr.Number(value=100, precision=0, label="Steps", interactive=True)
135
  src_cfg_scale = gr.Number(value=3.5, label=f"Source CFG", interactive=True)
136
  # reconstruction
137
+ skip = gr.Number(value=36, precision=0, label="Skip", interactive=True)
138
  tar_cfg_scale = gr.Number(value=15, label=f"Reconstruction CFG", interactive=True)
139
  # edit
140
  edit_concept = gr.Textbox(lines=1, label="Edit Concept", interactive=True)
 
159
  warm_up,
160
  neg_guidance
161
  ],
162
+ outputs=[ddpm_edited_image, sega_edited_image],
163
  )
164
 
165