Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -90,7 +90,7 @@ we_are = ['INDRA SWALLOW',
|
|
90 |
'PAINTED LADY']
|
91 |
|
92 |
def classify(image_):
|
93 |
-
model =
|
94 |
image = Image.open(image_)
|
95 |
image = image_transforms(image).float().to(device)
|
96 |
image = image.unsqueeze(0)
|
|
|
90 |
'PAINTED LADY']
|
91 |
|
92 |
def classify(image_):
|
93 |
+
model = new_model.eval()
|
94 |
image = Image.open(image_)
|
95 |
image = image_transforms(image).float().to(device)
|
96 |
image = image.unsqueeze(0)
|