Sergey Mikhno
commited on
Commit
·
8356f0a
1
Parent(s):
95b8d1f
- app/app.py +1 -0
app/app.py
CHANGED
@@ -26,6 +26,7 @@ def allowed_file(filename):
|
|
26 |
@spaces.GPU
|
27 |
def predict(filename):
|
28 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
29 |
return model.predict(
|
30 |
filename, # Image to predict
|
31 |
imgsz=1024, # Prediction image size
|
|
|
26 |
@spaces.GPU
|
27 |
def predict(filename):
|
28 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
29 |
+
print(device)
|
30 |
return model.predict(
|
31 |
filename, # Image to predict
|
32 |
imgsz=1024, # Prediction image size
|