File size: 515 Bytes
5ec7b76
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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