Spaces:
Runtime error
Runtime error
Update
Browse files53 unmodified lines5455565758596061626364656653 unmodified linesif SPACE_ID is not None: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>'if torch.cuda.is_available():DESCRIPTION += '\n<p>Running on GPU 🔥</p>'if os.getenv('SYSTEM') == 'spaces':download_all_controlnet_weights()else:DESCRIPTION += '\n<p>Running on CPU 🥶 This demo does not work on CPU.'MAX_IMAGES = int(os.getenv('MAX_IMAGES', '3'))DEFAULT_NUM_IMAGES = min(MAX_IMAGES, int(os.getenv('DEFAULT_NUM_IMAGES', '1')))53 unmodified lines54555657585960616263646553 unmodified linesif SPACE_ID is not None: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>'if not torch.cuda.is_available():DESCRIPTION += '\n<p>Running on CPU 🥶 This demo does not work on CPU.</p>'if torch.cuda.is_available():if os.getenv('SYSTEM') == 'spaces':download_all_controlnet_weights()MAX_IMAGES = int(os.getenv('MAX_IMAGES', '3'))DEFAULT_NUM_IMAGES = min(MAX_IMAGES, int(os.getenv('DEFAULT_NUM_IMAGES', '1')))
app.py+2-3