Skip to content

Commit 597213d

Browse files
committed
symlink
1 parent 0b27482 commit 597213d

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

rvc/scripts/start.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44

55
echo "Starting RVC server..."
66

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+
717
# Create log directory
818
mkdir -p /app/server/logs
919

rvc/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def process_rvc():
188188
logger.debug(f"Output path: {output_path}")
189189

190190
# Check for model and index files
191-
model_path = f"logs/{rapper}/{rapper}.pth"
191+
model_path = f"assets/weights/{rapper}.pth"
192192
index_path = f"logs/{rapper}/{rapper}.index"
193193

194194
if not os.path.exists(model_path):

0 commit comments

Comments
 (0)