#!/bin/bash

# 1. Activate the virtual environment
source .venv/bin/activate

# 2. Set AMD / ROCm Environment Variables
export HSA_OVERRIDE_GFX_VERSION=11.0.0
export HIP_VISIBLE_DEVICES=0
export LD_LIBRARY_PATH=/opt/rocm/lib:$LD_LIBRARY_PATH
export ROCM_PATH=/opt/rocm

# 3. Launch the WebUI
python infer-web.py
