lakshmi324 commited on
Commit
ee09fd4
1 Parent(s): e755da3

updated the path to pretrained model

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -25,7 +25,10 @@ transform_img = transforms.Compose([transforms.ToPILImage(),
25
 
26
 
27
  labels = ['damage','BG']
28
- model = Model.load('/Trained_Model.pth', labels) # CHange this while uploading
 
 
 
29
 
30
 
31
 
 
25
 
26
 
27
  labels = ['damage','BG']
28
+ ROOT_DIR = os.getcwd()
29
+ path = ROOT_DIR+'/Trained_Model.pth'
30
+ print('path',path)
31
+ model = Model.load(path, labels) # CHange this while uploading
32
 
33
 
34