multimodalart HF Staff commited on
Commit
b2f04a1
·
verified ·
1 Parent(s): dc66366

[Admin maintenance] Support new ZeroGPU hardware

Browse files

Thank you so much for having shared this Space with the community on this demo. We have upgraded the ZeroGPU infra-structure to run on modern blackwell architecture.
For that, we need to upgrade your demo to support that. This PR fixes your demo to work with the new architecture. As this is something we broke on our end, we may merge this PR autonomously. If this breaks unexpectedly or brings unintended consequences, feel free to revert, modify or otherwise. Any issues you can email apolinario@huggingface.co

Files changed (4) hide show
  1. README.md +1 -1
  2. app.py +1 -1
  3. pipeline.py +0 -1
  4. requirements.txt +5 -5
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 📷 🎨
4
  colorFrom: indigo
5
  colorTo: red
6
  sdk: gradio
7
- sdk_version: 4.41.0
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
 
4
  colorFrom: indigo
5
  colorTo: red
6
  sdk: gradio
7
+ sdk_version: 5.49.1
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import torch
2
  import numpy as np
3
  import random
@@ -7,7 +8,6 @@ from diffusers.utils import load_image
7
  from diffusers import EulerAncestralDiscreteScheduler
8
 
9
  from huggingface_hub import hf_hub_download
10
- import spaces
11
  import gradio as gr
12
 
13
  from pipeline import PhotoMakerStableDiffusionXLPipeline
 
1
+ import spaces
2
  import torch
3
  import numpy as np
4
  import random
 
8
  from diffusers import EulerAncestralDiscreteScheduler
9
 
10
  from huggingface_hub import hf_hub_download
 
11
  import gradio as gr
12
 
13
  from pipeline import PhotoMakerStableDiffusionXLPipeline
pipeline.py CHANGED
@@ -81,7 +81,6 @@ class PhotoMakerStableDiffusionXLPipeline(StableDiffusionXLPipeline):
81
  weights_name=weight_name,
82
  cache_dir=cache_dir,
83
  force_download=force_download,
84
- resume_download=resume_download,
85
  proxies=proxies,
86
  local_files_only=local_files_only,
87
  token=token,
 
81
  weights_name=weight_name,
82
  cache_dir=cache_dir,
83
  force_download=force_download,
 
84
  proxies=proxies,
85
  local_files_only=local_files_only,
86
  token=token,
requirements.txt CHANGED
@@ -1,12 +1,12 @@
1
- diffusers==0.25.0
2
- torch==2.0.0
3
- torchvision==0.15.1
4
- transformers
5
  accelerate
6
  safetensors
7
  einops
8
  onnxruntime-gpu
9
- spaces==0.19.4
10
  omegaconf
11
  peft
12
  huggingface-hub
 
1
+ diffusers
2
+ torch==2.10.0
3
+ torchvision==0.25.0
4
+ transformers==4.49.0
5
  accelerate
6
  safetensors
7
  einops
8
  onnxruntime-gpu
9
+ spaces
10
  omegaconf
11
  peft
12
  huggingface-hub