Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,6 +53,7 @@ def preprocess_input(input):
|
|
| 53 |
def predict(img):
|
| 54 |
x = torch.tensor(preprocess_input(img), dtype=torch.float32)
|
| 55 |
with torch.no_grad():
|
|
|
|
| 56 |
return model(x.unsqueeze(0)).argmax(1).item()
|
| 57 |
|
| 58 |
# Design UI
|
|
|
|
| 53 |
def predict(img):
|
| 54 |
x = torch.tensor(preprocess_input(img), dtype=torch.float32)
|
| 55 |
with torch.no_grad():
|
| 56 |
+
print(model(x.unsqueeze(0)))
|
| 57 |
return model(x.unsqueeze(0)).argmax(1).item()
|
| 58 |
|
| 59 |
# Design UI
|