Files
vosk-datacleaner/vosk/test_files/fix_and_run.sh
Alireza ab53369a89 hey
2025-08-02 18:20:24 +03:30

33 lines
871 B
Bash

#!/bin/bash
# Fix permissions and run optimized processing without root
echo "🔧 Fixing permissions and setting up optimized processing..."
# Make the script executable
chmod +x run_optimized_192cores_no_root.sh
# Check if uv is available
if ! command -v uv &> /dev/null; then
echo "❌ uv not found. Installing uv..."
curl -LsSf https://astral.sh/uv/install.sh | sh
source ~/.cargo/env
fi
# Create virtual environment if it doesn't exist
if [ ! -d ".venv" ]; then
echo "🔧 Creating virtual environment..."
uv venv
fi
# Activate virtual environment
echo "🔧 Activating virtual environment..."
source .venv/bin/activate
# Install dependencies
echo "📦 Installing dependencies..."
uv pip install -r requirements_optimized.txt
# Run the optimized processing
echo "🚀 Running optimized processing..."
./run_optimized_192cores_no_root.sh