Bobby commited on
Commit
1cb6567
·
1 Parent(s): 6323ab2

dockerfile

Browse files
Files changed (3) hide show
  1. Dockerfile +1 -7
  2. anime_app.py +1 -2
  3. requirements.txt +1 -0
Dockerfile CHANGED
@@ -16,12 +16,6 @@ WORKDIR /code
16
 
17
  COPY ./requirements.txt /code/requirements.txt
18
 
19
- RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
20
-
21
- RUN wget https://github.com/chengzeyi/stable-fast/releases/download/v1.0.5/stable_fast-1.0.5+torch222cu121-cp310-cp310-manylinux2014_x86_64.whl \
22
- && pip3 install stable_fast-1.0.5+torch222cu121-cp310-cp310-manylinux2014_x86_64.whl \
23
- && rm stable_fast-1.0.5+torch222cu121-cp310-cp310-manylinux2014_x86_64.whl
24
-
25
  # Set up a new user named "user" with user ID 1000
26
  RUN useradd -m -u 1000 user
27
  # Switch to the "user" user
@@ -37,7 +31,7 @@ ENV HOME=/home/user \
37
  GRADIO_THEME=huggingface \
38
  SYSTEM=spaces
39
 
40
- #RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
41
 
42
  # Set the working directory to the user's home directory
43
  WORKDIR $HOME/app
 
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
 
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
anime_app.py CHANGED
@@ -17,8 +17,7 @@ os.system("nvidia-smi")
17
  print("TORCH_CUDA", torch.cuda.is_available())
18
  print("CUDA version:", torch.version.cuda)
19
 
20
- from sfast.compilers.diffusion_pipeline_compiler import (compile,
21
- CompilationConfig)
22
 
23
  import torch
24
  from diffusers import (
 
17
  print("TORCH_CUDA", torch.cuda.is_available())
18
  print("CUDA version:", torch.version.cuda)
19
 
20
+ from sfast.compilers.diffusion_pipeline_compiler import compile, CompilationConfig
 
21
 
22
  import torch
23
  from diffusers import (
requirements.txt CHANGED
@@ -1,3 +1,4 @@
 
1
  torch==2.2.0
2
  torchvision==0.17.0
3
  torchaudio==2.2.0
 
1
+ stable-fast @ https://github.com/chengzeyi/stable-fast/releases/download/v1.0.5/stable_fast-1.0.5+torch222cu121-cp310-cp310-manylinux2014_x86_64.whl
2
  torch==2.2.0
3
  torchvision==0.17.0
4
  torchaudio==2.2.0