Gainward777 commited on
Commit
f13d198
·
verified ·
1 Parent(s): 02ffb06

Update ui/gradio_ui.py

Browse files
Files changed (1) hide show
  1. ui/gradio_ui.py +2 -2
ui/gradio_ui.py CHANGED
@@ -18,7 +18,7 @@ def ui(controller):#get_first_result,get_second_result): #controller):
18
  with gr.Row():
19
  with gr.Column():
20
  sketch=gr.Sketchpad(sources = 'upload', label='Sketch', type='pil', image_mode="RGB", brush=gr.Brush()) #gr.Image(sources = 'upload', label='Sketch', type = 'pil')
21
- ser_image=gr.Image(type="pil")#, visible=False)
22
 
23
  with gr.Column():
24
  improved_sketch_view = gr.Image(type="pil", label="Improved Sketch")
@@ -56,7 +56,7 @@ def ui(controller):#get_first_result,get_second_result): #controller):
56
 
57
 
58
  improve_sketch.click(fn=controller.get_first_result,
59
- inputs=[ser_image, first_prompt, first_negative_prompt], #[sketch, first_prompt, first_negative_prompt],
60
  outputs=improved_sketch_view)
61
 
62
  result_button.click(fn=controller.get_second_result,
 
18
  with gr.Row():
19
  with gr.Column():
20
  sketch=gr.Sketchpad(sources = 'upload', label='Sketch', type='pil', image_mode="RGB", brush=gr.Brush()) #gr.Image(sources = 'upload', label='Sketch', type = 'pil')
21
+ #ser_image=gr.Image(type="pil")#, visible=False)
22
 
23
  with gr.Column():
24
  improved_sketch_view = gr.Image(type="pil", label="Improved Sketch")
 
56
 
57
 
58
  improve_sketch.click(fn=controller.get_first_result,
59
+ inputs=[sketch, first_prompt, first_negative_prompt], #[ser_image, first_prompt, first_negative_prompt],
60
  outputs=improved_sketch_view)
61
 
62
  result_button.click(fn=controller.get_second_result,