Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
@@ -31,8 +31,8 @@ def transform_image(img_sample):
|
|
31 |
def predict(Image):
|
32 |
tranformed_img = transform_image(Image)
|
33 |
model.eval()
|
34 |
-
|
35 |
-
img = torch.from_numpy(tranformed_img)
|
36 |
|
37 |
with torch.no_grad():
|
38 |
grade = torch.softmax(model(img.float()), dim=1)[0]
|
|
|
31 |
def predict(Image):
|
32 |
tranformed_img = transform_image(Image)
|
33 |
model.eval()
|
34 |
+
img = transform_image(Image)
|
35 |
+
#img = torch.from_numpy(tranformed_img)
|
36 |
|
37 |
with torch.no_grad():
|
38 |
grade = torch.softmax(model(img.float()), dim=1)[0]
|