Spaces:
Build error
Build error
Fix Dockerfile and use Docker SDK
Browse files- Dockerfile +22 -0
- README.md +3 -4
- requirements.txt +0 -3
Dockerfile
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use the official Python image as a base
|
2 |
+
FROM python:3.10
|
3 |
+
|
4 |
+
# Set the working directory
|
5 |
+
WORKDIR /code
|
6 |
+
|
7 |
+
# Install system dependencies required for building packages
|
8 |
+
RUN apt-get update && apt-get install -y git git-lfs cmake libgl1-mesa-glx && rm -rf /var/lib/apt/lists/*
|
9 |
+
|
10 |
+
# Copy the requirements file and install Python dependencies
|
11 |
+
COPY requirements.txt .
|
12 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
13 |
+
|
14 |
+
# Install PyTorch3D and MoGe from GitHub after other dependencies are installed
|
15 |
+
RUN pip install --no-cache-dir git+https://github.com/facebookresearch/[email protected]
|
16 |
+
RUN pip install --no-cache-dir git+https://github.com/microsoft/MoGe.git
|
17 |
+
|
18 |
+
# Copy the rest of the application code
|
19 |
+
COPY . .
|
20 |
+
|
21 |
+
# Set the command to run the Gradio app
|
22 |
+
CMD ["python", "app.py"]
|
README.md
CHANGED
@@ -1,11 +1,10 @@
|
|
1 |
---
|
2 |
-
title: HunyuanWorld
|
3 |
emoji: π
|
4 |
colorFrom: blue
|
5 |
colorTo: green
|
6 |
-
sdk:
|
7 |
-
|
8 |
-
app_file: app.py
|
9 |
pinned: false
|
10 |
license: other
|
11 |
models:
|
|
|
1 |
---
|
2 |
+
title: HunyuanWorld Demo
|
3 |
emoji: π
|
4 |
colorFrom: blue
|
5 |
colorTo: green
|
6 |
+
sdk: docker
|
7 |
+
app_port: 7860
|
|
|
8 |
pinned: false
|
9 |
license: other
|
10 |
models:
|
requirements.txt
CHANGED
@@ -188,6 +188,3 @@ flash-attn==2.7.4.post1
|
|
188 |
triton==3.2.0
|
189 |
xformers==0.0.28.post2
|
190 |
|
191 |
-
# From github
|
192 |
-
-e git+https://github.com/facebookresearch/[email protected]#egg=pytorch3d
|
193 |
-
-e git+https://github.com/microsoft/MoGe.git#egg=moge
|
|
|
188 |
triton==3.2.0
|
189 |
xformers==0.0.28.post2
|
190 |
|
|
|
|
|
|