Abhi5ingh commited on
Commit
f5b1e95
1 Parent(s): e14cca7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -100,11 +100,10 @@ def image_uploader(prefix):
100
  return get_image(LOADED_IMAGE_KEY)
101
 
102
  def sketching():
103
- image = image_uploader("Controlnet")
104
 
105
  if not image:
106
  return None,None
107
- image = cv2.imread(image)
108
  image = cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)
109
  image_blur = cv2.GaussianBlur(image,(5,5),0)
110
  sketch = cv2.adaptiveThreshold(image_blur, 255, cv2.ADAPTIVE_THRESH_MEAN_C,cv2.THRES_BINARY,11,2)
 
100
  return get_image(LOADED_IMAGE_KEY)
101
 
102
  def sketching():
103
+ image = image_uploader("sketch2img)
104
 
105
  if not image:
106
  return None,None
 
107
  image = cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)
108
  image_blur = cv2.GaussianBlur(image,(5,5),0)
109
  sketch = cv2.adaptiveThreshold(image_blur, 255, cv2.ADAPTIVE_THRESH_MEAN_C,cv2.THRES_BINARY,11,2)