Spaces:
LAOS-Y
/
Running on Zero

LAOS-Y commited on
Commit
0a6e4bd
1 Parent(s): 5546838

disbale load_example button

Browse files
Files changed (1) hide show
  1. edit_app.py +14 -14
edit_app.py CHANGED
@@ -123,8 +123,8 @@ def main():
123
  with gr.Row():
124
  with gr.Column(scale=1, min_width=100):
125
  generate_button = gr.Button("Generate")
126
- with gr.Column(scale=1, min_width=100):
127
- load_button = gr.Button("Load Example")
128
  with gr.Column(scale=1, min_width=100):
129
  reset_button = gr.Button("Reset")
130
  with gr.Column(scale=3):
@@ -158,18 +158,18 @@ def main():
158
 
159
  gr.Markdown(help_text)
160
 
161
- load_button.click(
162
- fn=load_example,
163
- inputs=[
164
- steps,
165
- randomize_seed,
166
- seed,
167
- randomize_cfg,
168
- text_cfg_scale,
169
- image_cfg_scale,
170
- ],
171
- outputs=[input_image, instruction, seed, text_cfg_scale, image_cfg_scale, edited_image],
172
- )
173
  generate_button.click(
174
  fn=generate,
175
  inputs=[
 
123
  with gr.Row():
124
  with gr.Column(scale=1, min_width=100):
125
  generate_button = gr.Button("Generate")
126
+ # with gr.Column(scale=1, min_width=100):
127
+ # load_button = gr.Button("Load Example")
128
  with gr.Column(scale=1, min_width=100):
129
  reset_button = gr.Button("Reset")
130
  with gr.Column(scale=3):
 
158
 
159
  gr.Markdown(help_text)
160
 
161
+ # load_button.click(
162
+ # fn=load_example,
163
+ # inputs=[
164
+ # steps,
165
+ # randomize_seed,
166
+ # seed,
167
+ # randomize_cfg,
168
+ # text_cfg_scale,
169
+ # image_cfg_scale,
170
+ # ],
171
+ # outputs=[input_image, instruction, seed, text_cfg_scale, image_cfg_scale, edited_image],
172
+ # )
173
  generate_button.click(
174
  fn=generate,
175
  inputs=[