Spaces:
Runtime error
Runtime error
lakshmi324
commited on
Commit
•
ee09fd4
1
Parent(s):
e755da3
updated the path to pretrained model
Browse files
app.py
CHANGED
@@ -25,7 +25,10 @@ transform_img = transforms.Compose([transforms.ToPILImage(),
|
|
25 |
|
26 |
|
27 |
labels = ['damage','BG']
|
28 |
-
|
|
|
|
|
|
|
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 |
|