Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -179,7 +179,8 @@ def inference(image):
|
|
179 |
image_path = image
|
180 |
|
181 |
image_tensor = cv2.imread(image_path)
|
182 |
-
|
|
|
183 |
|
184 |
|
185 |
return [mask,mask]
|
|
|
179 |
image_path = image
|
180 |
|
181 |
image_tensor = cv2.imread(image_path)
|
182 |
+
with torch.no_grad():
|
183 |
+
mask = predict(net, image_tensor)
|
184 |
|
185 |
|
186 |
return [mask,mask]
|