Spaces:
Running on Zero
Running on Zero
Raphael Glon commited on
Upgrade requirements: zeroGPU supports torch 2.8+
Browse filesupgrade Gradio too and adapt app.py to fix css issue
Signed-off-by: Raphael Glon <oOraph@users.noreply.github.com>
- README.md +1 -1
- app.py +1 -1
- requirements.txt +11 -13
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 📦🔥
|
|
| 4 |
colorFrom: yellow
|
| 5 |
colorTo: red
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
short_description: Speedy and Accurate Image to 3D Generator
|
|
|
|
| 4 |
colorFrom: yellow
|
| 5 |
colorTo: red
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 6.14.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
short_description: Speedy and Accurate Image to 3D Generator
|
app.py
CHANGED
|
@@ -513,7 +513,7 @@ if __name__ == "__main__":
|
|
| 513 |
if args.low_vram_mode:
|
| 514 |
torch.cuda.empty_cache()
|
| 515 |
|
| 516 |
-
app = gr.mount_gradio_app(app, demo, path="/")
|
| 517 |
# demo.launch()
|
| 518 |
from spaces import zero
|
| 519 |
zero.startup()
|
|
|
|
| 513 |
if args.low_vram_mode:
|
| 514 |
torch.cuda.empty_cache()
|
| 515 |
|
| 516 |
+
app = gr.mount_gradio_app(app, demo, path="/", ssr_mode=False)
|
| 517 |
# demo.launch()
|
| 518 |
from spaces import zero
|
| 519 |
zero.startup()
|
requirements.txt
CHANGED
|
@@ -4,13 +4,12 @@ pybind11==2.13.6
|
|
| 4 |
|
| 5 |
# --- Hugging Face ZeroGPU Infrastructure ---
|
| 6 |
# 提前安装,确保硬件调度层最优先
|
| 7 |
-
|
| 8 |
-
huggingface-hub==0.23.5
|
| 9 |
|
| 10 |
# --- Core ML/Deep Learning ---
|
| 11 |
# 引擎放在最前面
|
| 12 |
-
torch=
|
| 13 |
-
torchvision
|
| 14 |
transformers==4.45.1
|
| 15 |
diffusers==0.30.1
|
| 16 |
accelerate==0.32.0
|
|
@@ -35,18 +34,17 @@ pygltflib==1.16.2
|
|
| 35 |
xatlas==0.0.9
|
| 36 |
|
| 37 |
# --- Web Framework ---
|
| 38 |
-
gradio==
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
pydantic
|
| 45 |
-
pydantic-core==2.20.1
|
| 46 |
|
| 47 |
# --- Configuration & Utilities ---
|
| 48 |
omegaconf==2.3.0
|
| 49 |
pyyaml==6.0.2
|
| 50 |
tqdm==4.66.4
|
| 51 |
psutil==5.9.8
|
| 52 |
-
onnxruntime==1.18.1
|
|
|
|
| 4 |
|
| 5 |
# --- Hugging Face ZeroGPU Infrastructure ---
|
| 6 |
# 提前安装,确保硬件调度层最优先
|
| 7 |
+
huggingface-hub
|
|
|
|
| 8 |
|
| 9 |
# --- Core ML/Deep Learning ---
|
| 10 |
# 引擎放在最前面
|
| 11 |
+
torch>=2.8.0
|
| 12 |
+
torchvision
|
| 13 |
transformers==4.45.1
|
| 14 |
diffusers==0.30.1
|
| 15 |
accelerate==0.32.0
|
|
|
|
| 34 |
xatlas==0.0.9
|
| 35 |
|
| 36 |
# --- Web Framework ---
|
| 37 |
+
gradio==6.14.0
|
| 38 |
+
fastapi
|
| 39 |
+
starlette
|
| 40 |
+
jinja2
|
| 41 |
+
uvicorn
|
| 42 |
+
pydantic
|
| 43 |
+
pydantic-core
|
|
|
|
| 44 |
|
| 45 |
# --- Configuration & Utilities ---
|
| 46 |
omegaconf==2.3.0
|
| 47 |
pyyaml==6.0.2
|
| 48 |
tqdm==4.66.4
|
| 49 |
psutil==5.9.8
|
| 50 |
+
onnxruntime==1.18.1
|