Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,9 @@
|
|
| 1 |
import subprocess
|
| 2 |
import os
|
| 3 |
import torch
|
|
|
|
| 4 |
|
|
|
|
| 5 |
if torch.cuda.is_available():
|
| 6 |
device="cuda"
|
| 7 |
print("Using GPU")
|
|
|
|
| 1 |
import subprocess
|
| 2 |
import os
|
| 3 |
import torch
|
| 4 |
+
import spaces
|
| 5 |
|
| 6 |
+
@spaces.GPU
|
| 7 |
if torch.cuda.is_available():
|
| 8 |
device="cuda"
|
| 9 |
print("Using GPU")
|