Avinyaa commited on
Commit
f5097fd
·
1 Parent(s): 8fe9046
Files changed (5) hide show
  1. .gitignore +1 -0
  2. Dockerfile +4 -0
  3. XTTS-v2_C3PO +1 -0
  4. __pycache__/app.cpython-311.pyc +0 -0
  5. app.py +2 -2
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ XTTS-v2_C3PO/
Dockerfile CHANGED
@@ -2,6 +2,10 @@ FROM python:3.11
2
 
3
  WORKDIR /app
4
 
 
 
 
 
5
  # Install git and git-lfs
6
  RUN apt-get update && apt-get install -y git git-lfs && rm -rf /var/lib/apt/lists/*
7
 
 
2
 
3
  WORKDIR /app
4
 
5
+ # Set environment variables to fix Numba caching issues
6
+ ENV NUMBA_CACHE_DIR=/tmp/numba_cache
7
+ ENV NUMBA_DISABLE_JIT=1
8
+
9
  # Install git and git-lfs
10
  RUN apt-get update && apt-get install -y git git-lfs && rm -rf /var/lib/apt/lists/*
11
 
XTTS-v2_C3PO ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit 4a9c0315b5b82f33bced654b0773e74832f2bb9a
__pycache__/app.cpython-311.pyc ADDED
Binary file (9.77 kB). View file
 
app.py CHANGED
@@ -25,8 +25,8 @@ class TTSService:
25
  logger.info(f"Using device: {self.device}")
26
 
27
  # Use absolute paths for the model
28
- model_path = "/app/XTTS-v2_C3PO/"
29
- config_path = "/app/XTTS-v2_C3PO/config.json"
30
 
31
  # Check if model files exist
32
  if not os.path.exists(config_path):
 
25
  logger.info(f"Using device: {self.device}")
26
 
27
  # Use absolute paths for the model
28
+ model_path = "XTTS-v2_C3PO/"
29
+ config_path = "XTTS-v2_C3PO/config.json"
30
 
31
  # Check if model files exist
32
  if not os.path.exists(config_path):