#!/bin/bash # Define the name of your virtual environment ENV_NAME="myenv" # Check if the virtual environment folder exists if [ ! -d "$ENV_NAME" ]; then # Create a new virtual environment python -m venv $ENV_NAME fi # Activate the virtual environment source $ENV_NAME/bin/activate # Install the required packages from requirements.txt python -m pip install -r requirements.txt # Run your Streamlit application python -m streamlit run agent_llama_ui.py # Deactivate the virtual environment deactivate