multimodalart HF staff commited on
Commit
b5d5466
1 Parent(s): 25c9ec5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -40,10 +40,10 @@ def convert_to_centered_scale(num):
40
  return tuple(range(start, end + 1))
41
 
42
  @spaces.GPU(duration=200)
43
- def generate(concept_1,
 
44
  concept_2,
45
  scale,
46
- prompt,
47
  randomize_seed=True,
48
  seed=42,
49
  recalc_directions=True,
@@ -190,7 +190,7 @@ with gr.Blocks(css=css) as demo:
190
  )
191
 
192
  submit.click(fn=generate,
193
- inputs=[concept_1, concept_2, x, prompt, randomize_seed, seed, recalc_directions, iterations, steps, interm_steps, guidance_scale, x_concept_1, x_concept_2, avg_diff_x, total_images],
194
  outputs=[x_concept_1, x_concept_2, avg_diff_x, output_image, image_seq, total_images, post_generation_image, post_generation_slider, seed])
195
 
196
  iterations.change(fn=reset_recalc_directions, outputs=[recalc_directions])
 
40
  return tuple(range(start, end + 1))
41
 
42
  @spaces.GPU(duration=200)
43
+ def generate(prompt,
44
+ concept_1,
45
  concept_2,
46
  scale,
 
47
  randomize_seed=True,
48
  seed=42,
49
  recalc_directions=True,
 
190
  )
191
 
192
  submit.click(fn=generate,
193
+ inputs=[prompt, concept_1, concept_2, x, randomize_seed, seed, recalc_directions, iterations, steps, interm_steps, guidance_scale, x_concept_1, x_concept_2, avg_diff_x, total_images],
194
  outputs=[x_concept_1, x_concept_2, avg_diff_x, output_image, image_seq, total_images, post_generation_image, post_generation_slider, seed])
195
 
196
  iterations.change(fn=reset_recalc_directions, outputs=[recalc_directions])