PorYoung commited on
Commit
873ecc3
2 Parent(s): f865062 e0c0e00

Merge branch 'main' of https://huggingface.co/spaces/PorYoung/sovits-4.0-V1-Kasugano-Sora into main

Browse files
Files changed (2) hide show
  1. Dockerfile +24 -9
  2. README.md +9 -4
Dockerfile CHANGED
@@ -1,19 +1,34 @@
1
  FROM python:3.8
2
 
3
- WORKDIR /work
4
-
5
  RUN apt update
6
  RUN apt install -y git libsndfile1-dev python3 python3-dev python3-pip ffmpeg
7
  RUN python3 -m pip install --no-cache-dir --upgrade pip
8
 
9
- COPY ./so-vits-svc /work/
10
- cd /work/so-vits/pretrain/nsf_hifigan
11
- wget -c https://github.com/openvpi/vocoders/releases/download/nsf-hifigan-v1/nsf_hifigan_20221211.zip
12
- unzip -q nsf_hifigan_20221211.zip
13
- cd /work/so-vits-svc
14
- RUN pip install --no-cache-dir --upgrade -r /work/so-vits-svc/requirements.txt
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
 
16
  ENV SERVER_NAME="0.0.0.0"
17
  ENV SERVER_PORT=7860
18
 
19
- RUN python webUI.py
 
 
 
1
  FROM python:3.8
2
 
 
 
3
  RUN apt update
4
  RUN apt install -y git libsndfile1-dev python3 python3-dev python3-pip ffmpeg
5
  RUN python3 -m pip install --no-cache-dir --upgrade pip
6
 
7
+ # Set up a new user named "user" with user ID 1000
8
+ RUN useradd -m -u 1000 user
9
+
10
+ # Switch to the "user" user
11
+ USER user
12
+
13
+ # Set home to the user's home directory
14
+ ENV HOME=/home/user \
15
+ PATH=/home/user/.local/bin:$PATH
16
+
17
+ # Set the working directory to the user's home directory
18
+ WORKDIR $HOME/
19
+
20
+ # Copy the current directory contents into the container at $HOME/app setting the owner to the user
21
+ COPY --chown=user . .
22
+
23
+ RUN cd $HOME/so-vits-svc/pretrain && \
24
+ wget -c https://github.com/openvpi/vocoders/releases/download/nsf-hifigan-v1/nsf_hifigan_20221211.zip && \
25
+ unzip -q nsf_hifigan_20221211.zip
26
+
27
+ RUN pip install --no-cache-dir --upgrade -r $HOME/so-vits-svc/requirements.txt
28
 
29
  ENV SERVER_NAME="0.0.0.0"
30
  ENV SERVER_PORT=7860
31
 
32
+ WORKDIR $HOME/so-vits-svc
33
+
34
+ CMD ["python3", "webUI.py"]
README.md CHANGED
@@ -1,11 +1,16 @@
1
  ---
2
  title: Sovits 4.0 V1 Kasugano Sora
3
- emoji: 🌍
4
- colorFrom: purple
5
- colorTo: pink
6
  sdk: docker
7
  pinned: false
8
  license: mit
 
 
9
  ---
10
 
11
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
1
  ---
2
  title: Sovits 4.0 V1 Kasugano Sora
3
+ emoji: 👀
4
+ colorFrom: pink
5
+ colorTo: red
6
  sdk: docker
7
  pinned: false
8
  license: mit
9
+ models: [PorYoung/sovits-Kasugano-Sora]
10
+ datasets: [PorYoung/Kasugano-Sora]
11
  ---
12
 
13
+ ## 免责声明
14
+ 本项目内容仅供学习交流,严禁用于商业用途和从事其他非法和有违公序良俗的活动,请于24小时内删除!本项目如有侵权行为,联系后将立即删除!
15
+
16
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference