linoyts HF staff commited on
Commit
d5f6a4a
·
verified ·
1 Parent(s): d9563d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -34,6 +34,9 @@ def resize_img(image, max_size=1024):
34
  new_height = int(height * scaling_factor)
35
  return image.resize((new_width, new_height), Image.LANCZOS)
36
 
 
 
 
37
  @spaces.GPU(duration=85)
38
  def invert_and_edit(image,
39
  prompt,
@@ -109,6 +112,7 @@ based on the implementations of [@raven38](https://github.com/raven38) & [@DarkM
109
  max_lines=1,
110
  placeholder="describe the edited output",
111
  )
 
112
  with gr.Row():
113
  start_timestep = gr.Slider(
114
  label="start timestep",
@@ -213,7 +217,7 @@ based on the implementations of [@raven38](https://github.com/raven38) & [@DarkM
213
  latent_image_ids,
214
  do_inversion,
215
  seed,
216
- randomize_seed
217
  ],
218
  outputs=[result, inverted_latents, image_latents, latent_image_ids, do_inversion, seed],
219
  )
 
34
  new_height = int(height * scaling_factor)
35
  return image.resize((new_width, new_height), Image.LANCZOS)
36
 
37
+ def check_style(stylezation):
38
+ return
39
+
40
  @spaces.GPU(duration=85)
41
  def invert_and_edit(image,
42
  prompt,
 
112
  max_lines=1,
113
  placeholder="describe the edited output",
114
  )
115
+ stylezation = gr.Checkbox(label="stylzation", value=True)
116
  with gr.Row():
117
  start_timestep = gr.Slider(
118
  label="start timestep",
 
217
  latent_image_ids,
218
  do_inversion,
219
  seed,
220
+ randomize_seed,
221
  ],
222
  outputs=[result, inverted_latents, image_latents, latent_image_ids, do_inversion, seed],
223
  )