rrg92 commited on
Commit
0ce2c89
·
1 Parent(s): 7c7f6f6

Minor fix to local test

Browse files
Files changed (2) hide show
  1. Dockerfile +8 -4
  2. InstallFromReadme.sh +7 -0
Dockerfile CHANGED
@@ -1,3 +1,5 @@
 
 
1
  FROM pytorch/pytorch:2.1.0-cuda12.1-cudnn8-devel
2
  ARG DEBIAN_FRONTEND=noninteractive
3
 
@@ -10,13 +12,15 @@ COPY requirements.txt .
10
  RUN python -m pip install --verbose -r requirements.txt
11
  RUN python -m pip cache purge
12
 
13
- RUN python -m unidic download
14
- RUN mkdir -p /app/tts_models
15
 
16
- RUN python -m pip install gradio==5.5
17
  RUN python -m pip install spaces
18
 
19
-
 
 
 
20
 
21
  COPY xtts.py .
22
  COPY app.py .
 
1
+ # This docker compose is just to simulate a HF space in local machine!
2
+
3
  FROM pytorch/pytorch:2.1.0-cuda12.1-cudnn8-devel
4
  ARG DEBIAN_FRONTEND=noninteractive
5
 
 
12
  RUN python -m pip install --verbose -r requirements.txt
13
  RUN python -m pip cache purge
14
 
15
+ # RUN python -m unidic download
16
+ # RUN mkdir -p /app/tts_models
17
 
 
18
  RUN python -m pip install spaces
19
 
20
+ COPY InstallFromReadme.sh .
21
+ COPY README.md .
22
+ RUN chmod +x InstallFromReadme.sh
23
+ RUN ./InstallFromReadme.sh
24
 
25
  COPY xtts.py .
26
  COPY app.py .
InstallFromReadme.sh ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # To be used with docker compose to simulate hugging face space!
2
+
3
+ version=$(cat README.md | grep -E "sdk_version\: (.+)" | cut -d " " -f 2)
4
+
5
+ echo "Installing gradio version $version";
6
+
7
+ pip install gradio==$version