hysts HF staff commited on
Commit
4353573
1 Parent(s): ff35174
Files changed (1) hide show
  1. edit_app.py +7 -9
edit_app.py CHANGED
@@ -138,33 +138,31 @@ InstructPix2Pix: Learning to Follow Image Editing Instructions
138
  with gr.Column(scale=1, min_width=100):
139
  reset_button = gr.Button("Reset")
140
  with gr.Column(scale=3):
141
- instruction = gr.Textbox(lines=1, label="Edit Instruction", interactive=True)
142
 
143
  with gr.Row():
144
- input_image = gr.Image(label="Input Image", type="pil", interactive=True)
145
- edited_image = gr.Image(label="Edited Image", type="pil", interactive=False)
146
  input_image.style(height=512, width=512)
147
  edited_image.style(height=512, width=512)
148
 
149
  with gr.Row():
150
- steps = gr.Number(value=50, precision=0, label="Steps", interactive=True)
151
  randomize_seed = gr.Radio(
152
  ["Fix Seed", "Randomize Seed"],
153
  value="Randomize Seed",
154
  type="index",
155
  show_label=False,
156
- interactive=True,
157
  )
158
- seed = gr.Number(value=1371, precision=0, label="Seed", interactive=True)
159
  randomize_cfg = gr.Radio(
160
  ["Fix CFG", "Randomize CFG"],
161
  value="Fix CFG",
162
  type="index",
163
  show_label=False,
164
- interactive=True,
165
  )
166
- text_cfg_scale = gr.Number(value=7.5, label="Text CFG", interactive=True)
167
- image_cfg_scale = gr.Number(value=1.5, label="Image CFG", interactive=True)
168
 
169
  gr.Examples(
170
  examples=[
 
138
  with gr.Column(scale=1, min_width=100):
139
  reset_button = gr.Button("Reset")
140
  with gr.Column(scale=3):
141
+ instruction = gr.Textbox(lines=1, label="Edit Instruction")
142
 
143
  with gr.Row():
144
+ input_image = gr.Image(label="Input Image", type="pil")
145
+ edited_image = gr.Image(label="Edited Image", type="pil")
146
  input_image.style(height=512, width=512)
147
  edited_image.style(height=512, width=512)
148
 
149
  with gr.Row():
150
+ steps = gr.Number(value=50, precision=0, label="Steps")
151
  randomize_seed = gr.Radio(
152
  ["Fix Seed", "Randomize Seed"],
153
  value="Randomize Seed",
154
  type="index",
155
  show_label=False,
 
156
  )
157
+ seed = gr.Number(value=1371, precision=0, label="Seed")
158
  randomize_cfg = gr.Radio(
159
  ["Fix CFG", "Randomize CFG"],
160
  value="Fix CFG",
161
  type="index",
162
  show_label=False,
 
163
  )
164
+ text_cfg_scale = gr.Number(value=7.5, label="Text CFG")
165
+ image_cfg_scale = gr.Number(value=1.5, label="Image CFG")
166
 
167
  gr.Examples(
168
  examples=[