Abhi5ingh commited on
Commit
56db7c1
1 Parent(s): 3c0e164

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -101,9 +101,10 @@ def image_uploader(prefix):
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)
 
101
 
102
  def sketching():
103
  image = image_uploader("sketch2img")
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)