SunderAli17 commited on
Commit
ebf5d82
·
verified ·
1 Parent(s): 76e60b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,8 +20,8 @@ You can try out the prompts and check for yourself.
20
 
21
  You can check out more of my spaces. Demo by [Sunder Ali Khowaja](https://sander-ali.github.io) - [Github](https://github.com/sander-ali)
22
  """
23
- # if not torch.cuda.is_available():
24
- # DESCRIPTION += "\n<h1>Running on CPU 🥶 This demo does not work on CPU. </h1>"
25
 
26
  MAX_SEED = np.iinfo(np.int32).max
27
  CACHE_EXAMPLES = torch.cuda.is_available() and os.getenv("CACHE_EXAMPLES", "0") == "1"
 
20
 
21
  You can check out more of my spaces. Demo by [Sunder Ali Khowaja](https://sander-ali.github.io) - [Github](https://github.com/sander-ali)
22
  """
23
+ if not torch.cuda.is_available():
24
+ MARKDOWN += "\n<h1>Running on CPU 🥶 This demo does not work on CPU. </h1>"
25
 
26
  MAX_SEED = np.iinfo(np.int32).max
27
  CACHE_EXAMPLES = torch.cuda.is_available() and os.getenv("CACHE_EXAMPLES", "0") == "1"