Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,6 +9,7 @@ import wandb
|
|
| 9 |
from wandb.integration.diffusers import autolog
|
| 10 |
|
| 11 |
|
|
|
|
| 12 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 13 |
|
| 14 |
if torch.cuda.is_available():
|
|
|
|
| 9 |
from wandb.integration.diffusers import autolog
|
| 10 |
|
| 11 |
|
| 12 |
+
# check the device
|
| 13 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 14 |
|
| 15 |
if torch.cuda.is_available():
|