hysts HF staff commited on
Commit
53b39de
1 Parent(s): 722aab8
Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +2 -4
  3. requirements.txt +3 -3
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 📉
4
  colorFrom: yellow
5
  colorTo: green
6
  sdk: gradio
7
- sdk_version: 3.27.0
8
  python_version: 3.10.11
9
  app_file: app.py
10
  pinned: false
 
4
  colorFrom: yellow
5
  colorTo: green
6
  sdk: gradio
7
+ sdk_version: 3.28.0
8
  python_version: 3.10.11
9
  app_file: app.py
10
  pinned: false
app.py CHANGED
@@ -30,10 +30,8 @@ ALLOW_CHANGING_BASE_MODEL = SPACE_ID != 'hysts/ControlNet-v1-1'
30
  if SPACE_ID is not None:
31
  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>'
32
 
33
- if torch.cuda.is_available():
34
- DESCRIPTION += '\n<p>Running on GPU 🔥</p>'
35
- else:
36
- DESCRIPTION += '\n<p>Running on CPU 🥶 This demo does not work on CPU.'
37
 
38
  MAX_NUM_IMAGES = int(os.getenv('MAX_NUM_IMAGES', '3'))
39
  DEFAULT_NUM_IMAGES = min(MAX_NUM_IMAGES,
 
30
  if SPACE_ID is not None:
31
  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>'
32
 
33
+ if not torch.cuda.is_available():
34
+ DESCRIPTION += '\n<p>Running on CPU 🥶 This demo does not work on CPU.</p>'
 
 
35
 
36
  MAX_NUM_IMAGES = int(os.getenv('MAX_NUM_IMAGES', '3'))
37
  DEFAULT_NUM_IMAGES = min(MAX_NUM_IMAGES,
requirements.txt CHANGED
@@ -1,9 +1,9 @@
1
  accelerate==0.18.0
2
  controlnet_aux==0.0.3
3
- diffusers==0.15.1
4
  einops==0.6.0
5
- gradio==3.27.0
6
- huggingface-hub==0.13.4
7
  opencv-python-headless==4.7.0.72
8
  safetensors==0.3.0
9
  torch==2.0.0
 
1
  accelerate==0.18.0
2
  controlnet_aux==0.0.3
3
+ diffusers==0.16.0
4
  einops==0.6.0
5
+ gradio==3.28.0
6
+ huggingface-hub==0.14.1
7
  opencv-python-headless==4.7.0.72
8
  safetensors==0.3.0
9
  torch==2.0.0