Spaces:
Sleeping
Sleeping
Update ui/gradio_ui.py
Browse files- 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.
|
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],
|