Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,7 +56,7 @@ def predict(img):
|
|
| 56 |
|
| 57 |
img = img.convert("RGB")
|
| 58 |
|
| 59 |
-
x = preprocess(img).unsqueeze(0)
|
| 60 |
|
| 61 |
with torch.inference_mode():
|
| 62 |
logits = model(x)
|
|
|
|
| 56 |
|
| 57 |
img = img.convert("RGB")
|
| 58 |
|
| 59 |
+
x = preprocess(img).unsqueeze(0).to("cuda")
|
| 60 |
|
| 61 |
with torch.inference_mode():
|
| 62 |
logits = model(x)
|