feat: streamlit api

This commit is contained in:
Radu C. Martin 2025-04-11 13:04:34 +02:00
parent bdf44bcd94
commit 573429acd2
3 changed files with 74 additions and 61 deletions

14
.envrc
View file

@ -10,9 +10,21 @@ layout_uv() {
VIRTUAL_ENV="$(pwd)/.venv"
fi
export PATH=$PATH":$VIRTUAL_ENV/bin"
PATH_add "$VIRTUAL_ENV/bin"
export UV_ACTIVE=1 # or VENV_ACTIVE=1
export VIRTUAL_ENV
}
layout_uv
# Path to your virtual environment directory
VENV_DIR="./venv"
# Load and activate the virtual environment if it exists
if [[ -d "$VENV_DIR" ]]; then
layout python "$VENV_DIR"
else
echo "Virtual environment not found at $VENV_DIR"
fi