fantos commited on
Commit
951fad8
·
verified ·
1 Parent(s): a3614d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -12
app.py CHANGED
@@ -252,8 +252,6 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css) as Kolors:
252
  placeholder="Enter text to be converted into an image",
253
  lines=3
254
  )
255
-
256
-
257
  with gr.Row():
258
  with gr.Column():
259
  gr.Markdown("Text Position")
@@ -332,7 +330,6 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css) as Kolors:
332
  result = gr.Gallery(label="Result", show_label=False, columns=2)
333
  seed_used = gr.Number(label="Seed Used")
334
 
335
-
336
  canny_button.click(
337
  fn = infer_canny,
338
  inputs = [prompt, text_for_image, text_position, font_size, negative_prompt, seed, randomize_seed, guidance_scale, num_inference_steps, controlnet_conditioning_scale, control_guidance_end, strength],
@@ -352,13 +349,4 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css) as Kolors:
352
  label="Examples"
353
  )
354
 
355
- canny_button.click(
356
- fn = infer_canny,
357
- inputs = [prompt, text_for_image, text_position, font_size, negative_prompt, seed, randomize_seed, guidance_scale, num_inference_steps, controlnet_conditioning_scale, control_guidance_end, strength],
358
- outputs = [result, seed_used]
359
- )
360
-
361
- # Set initial button states
362
- Kolors.load(update_button_states, inputs=[text_position], outputs=position_buttons)
363
-
364
  Kolors.queue().launch(debug=True)
 
252
  placeholder="Enter text to be converted into an image",
253
  lines=3
254
  )
 
 
255
  with gr.Row():
256
  with gr.Column():
257
  gr.Markdown("Text Position")
 
330
  result = gr.Gallery(label="Result", show_label=False, columns=2)
331
  seed_used = gr.Number(label="Seed Used")
332
 
 
333
  canny_button.click(
334
  fn = infer_canny,
335
  inputs = [prompt, text_for_image, text_position, font_size, negative_prompt, seed, randomize_seed, guidance_scale, num_inference_steps, controlnet_conditioning_scale, control_guidance_end, strength],
 
349
  label="Examples"
350
  )
351
 
 
 
 
 
 
 
 
 
 
352
  Kolors.queue().launch(debug=True)