yangliz5 commited on
Commit
be3fb72
1 Parent(s): 2c11490

refactor: Remove unnecessary device selection in predict function

Browse files
Files changed (1) hide show
  1. app.py +0 -1
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
  )