Spaces:
Runtime error
Runtime error
shivambhosale
commited on
Commit
·
4a24ad1
1
Parent(s):
816e967
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import gradio as gr
|
|
5 |
|
6 |
def getoutput(input_img):
|
7 |
unet = UNet().to('cpu')
|
8 |
-
unet = torch.load("
|
9 |
output_img = make_predictions(unet, input_img, threshold=0.05)
|
10 |
return output_img
|
11 |
|
|
|
5 |
|
6 |
def getoutput(input_img):
|
7 |
unet = UNet().to('cpu')
|
8 |
+
unet = torch.load("unet_06_07_2022_22_43_42_1024_1024.pth", map_location='cpu').to('cpu')
|
9 |
output_img = make_predictions(unet, input_img, threshold=0.05)
|
10 |
return output_img
|
11 |
|