File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 4
4
5
5
echo " Starting RVC server..."
6
6
7
+ # Create the weights directory and symlink all model files
8
+ echo " Setting up model symlinks..."
9
+ mkdir -p /app/weights
10
+ # Remove any existing symlinks first to avoid errors
11
+ rm -f /app/weights/*
12
+ # Create symlinks for all model files
13
+ ln -sf /app/assets/weights/* /app/weights/
14
+ echo " Model symlinks created:"
15
+ ls -la /app/weights/
16
+
7
17
# Create log directory
8
18
mkdir -p /app/server/logs
9
19
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ def process_rvc():
188
188
logger .debug (f"Output path: { output_path } " )
189
189
190
190
# Check for model and index files
191
- model_path = f"logs/ { rapper } /{ rapper } .pth"
191
+ model_path = f"assets/weights /{ rapper } .pth"
192
192
index_path = f"logs/{ rapper } /{ rapper } .index"
193
193
194
194
if not os .path .exists (model_path ):
You can’t perform that action at this time.
0 commit comments