Spaces:
Running
Running
refactor: Remove unnecessary device selection in predict function
Browse files
app.py
CHANGED
@@ -66,7 +66,6 @@ def predict(
|
|
66 |
accelerator = "cpu" if torch.cuda.is_available() else "gpu"
|
67 |
trainer = lightning.pytorch.trainer.Trainer(
|
68 |
accelerator=accelerator,
|
69 |
-
devices=-1,
|
70 |
deterministic=False,
|
71 |
logger=False,
|
72 |
)
|
|
|
66 |
accelerator = "cpu" if torch.cuda.is_available() else "gpu"
|
67 |
trainer = lightning.pytorch.trainer.Trainer(
|
68 |
accelerator=accelerator,
|
|
|
69 |
deterministic=False,
|
70 |
logger=False,
|
71 |
)
|