Gainward777 commited on
Commit
5ed5eda
1 Parent(s): b3c2212

Update ui/gradio_ui.py

Browse files
Files changed (1) hide show
  1. ui/gradio_ui.py +2 -2
ui/gradio_ui.py CHANGED
@@ -1,5 +1,5 @@
1
  import gradio as gr
2
- from PIL import Image
3
  import numpy as np
4
 
5
 
@@ -7,7 +7,7 @@ import numpy as np
7
 
8
  def get_img_from_sketchpad(img):
9
  #global SER_SKETCH
10
- return Image.fromarray((img["composite"]))#,'L')
11
 
12
  #def set_ser_sketch(img):
13
  #global SER_SKETCH
 
1
  import gradio as gr
2
+ from PIL import Image, ImageOps
3
  import numpy as np
4
 
5
 
 
7
 
8
  def get_img_from_sketchpad(img):
9
  #global SER_SKETCH
10
+ return ImageOps.invert(Image.fromarray((img["composite"])))#,'L')
11
 
12
  #def set_ser_sketch(img):
13
  #global SER_SKETCH