Gainward777 commited on
Commit
3794395
·
verified ·
1 Parent(s): fa71535

Update ui/gradio_ui.py

Browse files
Files changed (1) hide show
  1. ui/gradio_ui.py +9 -6
ui/gradio_ui.py CHANGED
@@ -12,16 +12,19 @@ def ui(controller):#get_first_result,get_second_result): #controller):
12
  with gr.Column():
13
  improved_sketch_view = gr.Image(type="pil", label="Improved Sketch")
14
 
 
 
 
 
 
 
 
 
 
15
  improve_sketch.click(fn=controller.get_first_result,
16
  inputs=[sketch, first_prompt, first_negative_prompt],
17
  outputs=improved_sketch_view)
18
 
19
- with gr.Row():
20
- result=gr.Image(type="pil", label="Improved Sketch")
21
- second_prompt = gr.Textbox(label="Prompt", lines=3)
22
- second_negative_prompt = gr.Textbox(label="Negative prompt", lines=3, value="disfigured, extra digit, fewer digits, cropped, worst quality, low quality")
23
- result_button = gr.Button(value="Paint It", variant="primary")
24
-
25
  result_button.click(fn=controller.get_second_result,
26
  inputs=[improved_sketch_view, second_prompt, second_negative_prompt],
27
  outputs=result)
 
12
  with gr.Column():
13
  improved_sketch_view = gr.Image(type="pil", label="Improved Sketch")
14
 
15
+
16
+
17
+ #with gr.Row():
18
+ with gr.Column():
19
+ result=gr.Image(type="pil", label="Improved Sketch")
20
+ second_prompt = gr.Textbox(label="Prompt", lines=3)
21
+ second_negative_prompt = gr.Textbox(label="Negative prompt", lines=3, value="disfigured, extra digit, fewer digits, cropped, worst quality, low quality")
22
+ result_button = gr.Button(value="Paint It", variant="primary")
23
+
24
  improve_sketch.click(fn=controller.get_first_result,
25
  inputs=[sketch, first_prompt, first_negative_prompt],
26
  outputs=improved_sketch_view)
27
 
 
 
 
 
 
 
28
  result_button.click(fn=controller.get_second_result,
29
  inputs=[improved_sketch_view, second_prompt, second_negative_prompt],
30
  outputs=result)