Gainward777 commited on
Commit
72ad3b4
·
verified ·
1 Parent(s): 218b87b

Update ui/gradio_ui.py

Browse files
Files changed (1) hide show
  1. ui/gradio_ui.py +1 -1
ui/gradio_ui.py CHANGED
@@ -49,7 +49,7 @@ def ui(controller):#get_first_result,get_second_result): #controller):
49
  inputs=[sketch, first_prompt, second_prompt],
50
  label='Examples. Be concrete as much as possible.')
51
 
52
- sketch.input(fn=get_img_from_sketchpad, inputs=sketch, outputs=ser_image, show_progress="hidden")
53
 
54
  improve_sketch.click(fn=controller.get_first_result,
55
  inputs=[ser_image, first_prompt, first_negative_prompt], #[sketch, first_prompt, first_negative_prompt],
 
49
  inputs=[sketch, first_prompt, second_prompt],
50
  label='Examples. Be concrete as much as possible.')
51
 
52
+ sketch.change(fn=get_img_from_sketchpad, inputs=sketch, outputs=ser_image, show_progress="hidden")
53
 
54
  improve_sketch.click(fn=controller.get_first_result,
55
  inputs=[ser_image, first_prompt, first_negative_prompt], #[sketch, first_prompt, first_negative_prompt],