Spaces:
hysts
/
Running on Zero

Demo works with CPU

#3
by osanseviero HF staff - opened
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ if (SPACE_ID := os.getenv('SPACE_ID')) is not None:
18
  if torch.cuda.is_available():
19
  DESCRIPTION += '\n<p>Running on GPU 🔥</p>'
20
  else:
21
- DESCRIPTION += '\n<p>Running on CPU 🥶 This demo does not work on CPU.'
22
 
23
  device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
24
 
18
  if torch.cuda.is_available():
19
  DESCRIPTION += '\n<p>Running on GPU 🔥</p>'
20
  else:
21
+ DESCRIPTION += '\n<p>Running on CPU 🥶'
22
 
23
  device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
24