hysts HF staff commited on
Commit
d48f26a
1 Parent(s): b554f48
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -51,13 +51,12 @@ ALLOW_CHANGING_BASE_MODEL = SPACE_ID != 'hysts/ControlNet-with-Anything-v4'
51
 
52
  if SPACE_ID is not None:
53
  DESCRIPTION += f'\n<p>For faster inference without waiting in queue, you may duplicate the space and upgrade to GPU in settings. <a href="https://huggingface.co/spaces/{SPACE_ID}?duplicate=true"><img style="display: inline; margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space" /></a></p>'
 
 
54
 
55
  if torch.cuda.is_available():
56
- DESCRIPTION += '\n<p>Running on GPU 🔥</p>'
57
  if os.getenv('SYSTEM') == 'spaces':
58
  download_all_controlnet_weights()
59
- else:
60
- DESCRIPTION += '\n<p>Running on CPU 🥶 This demo does not work on CPU.'
61
 
62
  MAX_IMAGES = int(os.getenv('MAX_IMAGES', '3'))
63
  DEFAULT_NUM_IMAGES = min(MAX_IMAGES, int(os.getenv('DEFAULT_NUM_IMAGES', '1')))
 
51
 
52
  if SPACE_ID is not None:
53
  DESCRIPTION += f'\n<p>For faster inference without waiting in queue, you may duplicate the space and upgrade to GPU in settings. <a href="https://huggingface.co/spaces/{SPACE_ID}?duplicate=true"><img style="display: inline; margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space" /></a></p>'
54
+ if not torch.cuda.is_available():
55
+ DESCRIPTION += '\n<p>Running on CPU 🥶 This demo does not work on CPU.</p>'
56
 
57
  if torch.cuda.is_available():
 
58
  if os.getenv('SYSTEM') == 'spaces':
59
  download_all_controlnet_weights()
 
 
60
 
61
  MAX_IMAGES = int(os.getenv('MAX_IMAGES', '3'))
62
  DEFAULT_NUM_IMAGES = min(MAX_IMAGES, int(os.getenv('DEFAULT_NUM_IMAGES', '1')))