File size: 356 Bytes
1b6c34a
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
# Get the directory where the script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"

# Enable MPS fallback for macOS Apple Silicon
export PYTORCH_ENABLE_MPS_FALLBACK=1

# Run the python script with uv using existing .venv
cd "$SCRIPT_DIR" && VIRTUAL_ENV="$SCRIPT_DIR/.venv" uv run --no-sync talk.py "$@"