Spaces:
Running
on
L4
Running
on
L4
Test gradio space
Browse files- Dockerfile +0 -42
- README.md +4 -2
- requirements.txt +0 -1
Dockerfile
DELETED
@@ -1,42 +0,0 @@
|
|
1 |
-
FROM nvidia/cuda:12.1.1-cudnn8-devel-ubuntu22.04
|
2 |
-
|
3 |
-
ARG DEBIAN_FRONTEND=noninteractive
|
4 |
-
|
5 |
-
ENV PYTHONUNBUFFERED=1
|
6 |
-
|
7 |
-
RUN apt-get update && apt-get install --no-install-recommends -y \
|
8 |
-
build-essential \
|
9 |
-
python3.9 \
|
10 |
-
python3-pip \
|
11 |
-
git \
|
12 |
-
ffmpeg \
|
13 |
-
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
14 |
-
|
15 |
-
WORKDIR /code
|
16 |
-
|
17 |
-
COPY ./requirements.txt /code/requirements.txt
|
18 |
-
|
19 |
-
# Set up a new user named "user" with user ID 1000
|
20 |
-
RUN useradd -m -u 1000 user
|
21 |
-
# Switch to the "user" user
|
22 |
-
USER user
|
23 |
-
# Set home to the user's home directory
|
24 |
-
ENV HOME=/home/user \
|
25 |
-
PATH=/home/user/.local/bin:$PATH \
|
26 |
-
PYTHONPATH=$HOME/app \
|
27 |
-
PYTHONUNBUFFERED=1 \
|
28 |
-
GRADIO_ALLOW_FLAGGING=never \
|
29 |
-
GRADIO_NUM_PORTS=1 \
|
30 |
-
GRADIO_SERVER_NAME=0.0.0.0 \
|
31 |
-
GRADIO_THEME=huggingface \
|
32 |
-
SYSTEM=spaces
|
33 |
-
|
34 |
-
RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
|
35 |
-
|
36 |
-
# Set the working directory to the user's home directory
|
37 |
-
WORKDIR $HOME/app
|
38 |
-
|
39 |
-
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
40 |
-
COPY --chown=user . $HOME/app
|
41 |
-
|
42 |
-
CMD ["python3", "app.py"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
CHANGED
@@ -3,8 +3,10 @@ title: Stable Fast 3D
|
|
3 |
emoji: 🎮
|
4 |
colorFrom: purple
|
5 |
colorTo: indigo
|
6 |
-
sdk:
|
7 |
-
|
|
|
|
|
8 |
pinned: false
|
9 |
models:
|
10 |
- stabilityai/stable-fast-3d
|
|
|
3 |
emoji: 🎮
|
4 |
colorFrom: purple
|
5 |
colorTo: indigo
|
6 |
+
sdk: gradio
|
7 |
+
sdk_version: 4.31.4
|
8 |
+
python_version: 3.10.13
|
9 |
+
app_file: app.py
|
10 |
pinned: false
|
11 |
models:
|
12 |
- stabilityai/stable-fast-3d
|
requirements.txt
CHANGED
@@ -10,5 +10,4 @@ trimesh==4.4.1
|
|
10 |
numpy==1.26.4
|
11 |
huggingface-hub==0.23.4
|
12 |
rembg[gpu]==2.0.57
|
13 |
-
gradio==4.31.4
|
14 |
gradio-litmodel3d==0.0.1
|
|
|
10 |
numpy==1.26.4
|
11 |
huggingface-hub==0.23.4
|
12 |
rembg[gpu]==2.0.57
|
|
|
13 |
gradio-litmodel3d==0.0.1
|