Spaces:
Running on Zero
Running on Zero
[Admin maintenance] Support new ZeroGPU hardware
Browse filesThank 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
- README.md +1 -1
- app.py +1 -1
- pipeline.py +0 -1
- requirements.txt +5 -5
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 📷 🎨
|
|
| 4 |
colorFrom: indigo
|
| 5 |
colorTo: red
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 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
|
| 2 |
-
torch==2.
|
| 3 |
-
torchvision==0.
|
| 4 |
-
transformers
|
| 5 |
accelerate
|
| 6 |
safetensors
|
| 7 |
einops
|
| 8 |
onnxruntime-gpu
|
| 9 |
-
spaces
|
| 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
|