Gainward777 commited on
Commit
9641bf7
·
verified ·
1 Parent(s): e327e08

Update ui/gradio_ui.py

Browse files
Files changed (1) hide show
  1. ui/gradio_ui.py +1 -1
ui/gradio_ui.py CHANGED
@@ -5,7 +5,7 @@ def ui(controller):#get_first_result,get_second_result): #controller):
5
  with gr.Blocks() as ui:
6
  with gr.Row():
7
  with gr.Column():
8
- sketch=gr.Sketchpad(sources = 'upload', label='Sketch', type = 'pil', image_mode='RGB') #gr.Image(sources = 'upload', label='Sketch', type = 'pil')
9
 
10
  with gr.Column():
11
  improved_sketch_view = gr.Image(type="pil", label="Improved Sketch")
 
5
  with gr.Blocks() as ui:
6
  with gr.Row():
7
  with gr.Column():
8
+ sketch=gr.Sketchpad(sources = 'upload', label='Sketch', type='numpy', image_mode='L', brush=gr.Brush()) #gr.Image(sources = 'upload', label='Sketch', type = 'pil')
9
 
10
  with gr.Column():
11
  improved_sketch_view = gr.Image(type="pil", label="Improved Sketch")