multimodalart HF Staff commited on
Commit
44cbfbb
·
verified ·
1 Parent(s): 5405147

[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 (3) hide show
  1. README.md +1 -1
  2. app.py +2 -1
  3. requirements.txt +7 -12
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: ⚡
4
  colorFrom: yellow
5
  colorTo: indigo
6
  sdk: gradio
7
- sdk_version: 5.44.0
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
 
4
  colorFrom: yellow
5
  colorTo: indigo
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
@@ -17,9 +17,10 @@ import json
17
  import os
18
  from pathlib import Path
19
 
 
 
20
  import gradio as gr
21
  import torch
22
- import spaces
23
 
24
  from uso.flux.pipeline import USOPipeline
25
  from transformers import SiglipVisionModel, SiglipImageProcessor
 
17
  import os
18
  from pathlib import Path
19
 
20
+ import spaces
21
+
22
  import gradio as gr
23
  import torch
 
24
 
25
  from uso.flux.pipeline import USOPipeline
26
  from transformers import SiglipVisionModel, SiglipImageProcessor
requirements.txt CHANGED
@@ -1,19 +1,14 @@
1
- accelerate==1.1.1
2
- deepspeed==0.14.4
3
  einops==0.8.0
4
- transformers==4.43.3
5
  huggingface-hub
6
- diffusers==0.30.1
7
  sentencepiece==0.2.0
8
- gradio==5.22.0
9
  opencv-python
10
  matplotlib
11
- safetensors==0.4.5
12
- scipy==1.10.1
13
- numpy==1.24.4
14
  onnxruntime-gpu
15
- # httpx==0.23.3
16
  git+https://github.com/openai/CLIP.git
17
- --extra-index-url https://download.pytorch.org/whl/cu124
18
- torch==2.4.0
19
- torchvision==0.19.0
 
1
+ accelerate
 
2
  einops==0.8.0
3
+ transformers
4
  huggingface-hub
5
+ diffusers
6
  sentencepiece==0.2.0
7
+ gradio==5.49.1
8
  opencv-python
9
  matplotlib
10
+ safetensors
11
+ scipy
12
+ numpy
13
  onnxruntime-gpu
 
14
  git+https://github.com/openai/CLIP.git