Spaces:
Runtime error
Runtime error
Commit
·
c48dde4
1
Parent(s):
52fb80a
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def download_img(path):
|
|
46 |
handler.write(img_data)
|
47 |
return local_path
|
48 |
|
49 |
-
def predict(
|
50 |
x = torch.tensor(im, dtype=torch.float32).unsqueeze(0).unsqueeze(0) / 255.
|
51 |
with torch.no_grad():
|
52 |
out = class_model(x)
|
|
|
46 |
handler.write(img_data)
|
47 |
return local_path
|
48 |
|
49 |
+
def predict(im):
|
50 |
x = torch.tensor(im, dtype=torch.float32).unsqueeze(0).unsqueeze(0) / 255.
|
51 |
with torch.no_grad():
|
52 |
out = class_model(x)
|