ford442 commited on
Commit
9b79fdd
·
verified ·
1 Parent(s): 873e499

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -59,6 +59,7 @@ ENABLE_CPU_OFFLOAD = 0
59
  BATCH_SIZE = int(os.getenv("BATCH_SIZE", "1"))
60
 
61
  device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
 
62
 
63
  style_list = [
64
  {
 
59
  BATCH_SIZE = int(os.getenv("BATCH_SIZE", "1"))
60
 
61
  device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
62
+ torch.set_default_device('cuda')
63
 
64
  style_list = [
65
  {