Gainward777 commited on
Commit
c83f55d
·
verified ·
1 Parent(s): 3118dd9

Update ui/gradio_ui.py

Browse files
Files changed (1) hide show
  1. ui/gradio_ui.py +2 -2
ui/gradio_ui.py CHANGED
@@ -38,7 +38,7 @@ def ui(controller):#get_first_result,get_second_result): #controller):
38
 
39
 
40
  improve_sketch.click(fn=controller.get_first_result,
41
- inputs=[Image.fromarray(sketch), first_prompt, first_negative_prompt],
42
  outputs=improved_sketch_view)
43
 
44
  result_button.click(fn=controller.get_second_result,
@@ -46,7 +46,7 @@ def ui(controller):#get_first_result,get_second_result): #controller):
46
  outputs=result)
47
 
48
  firts_prompt_helper.click(fn=controller.get_help_w_prompt,
49
- inputs=[Image.fromarray(sketch)],
50
  outputs=first_prompt)
51
 
52
  second_prompt_helper.click(fn=controller.get_help_w_prompt,
 
38
 
39
 
40
  improve_sketch.click(fn=controller.get_first_result,
41
+ inputs=[Image.fromarray(sketch['composite']), first_prompt, first_negative_prompt], #[sketch, first_prompt, first_negative_prompt],
42
  outputs=improved_sketch_view)
43
 
44
  result_button.click(fn=controller.get_second_result,
 
46
  outputs=result)
47
 
48
  firts_prompt_helper.click(fn=controller.get_help_w_prompt,
49
+ inputs=[Image.fromarray(sketch['composite'])], #[sketch],
50
  outputs=first_prompt)
51
 
52
  second_prompt_helper.click(fn=controller.get_help_w_prompt,