Abhi5ingh commited on
Commit
b44d446
1 Parent(s): ec86d75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -109,7 +109,8 @@ def sketching():
109
 
110
  with tempfile.TemporaryDirectory() as temp_dir:
111
  temp_image_path = os.path.join(temp_dir, "uploaded_image.jpg")
112
- uploaded_image.save(temp_image_path)
 
113
  image = cv2.imread(temp_image_path)
114
  image = cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)
115
  image_blur = cv2.GaussianBlur(image,(5,5),0)
 
109
 
110
  with tempfile.TemporaryDirectory() as temp_dir:
111
  temp_image_path = os.path.join(temp_dir, "uploaded_image.jpg")
112
+ image.save(temp_image_path)
113
+
114
  image = cv2.imread(temp_image_path)
115
  image = cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)
116
  image_blur = cv2.GaussianBlur(image,(5,5),0)