AiShieldsWeb
1.0.0
@Apprentices AiShields Draft Web Front End Setup: BCAMP.dev Data and AI Cohort Spring 2024
Project: Data Sanitizer for AI AiShields Web Front End:
Dependencies: Python 3.12.3, Sqlite3
mkdir aiShieldsLocal
cd aiShieldsLocal
Run the file: AiShieldsWeb/cloneMostRecentAndSetupEnv.sh
b) Windows:
git clone https://github.com/AiShieldsOrg/AiShieldsWeb.git
cd AiShieldsWeb
python3.12 -m venv .venv
source /Users/pmk/Documents/AiShieldsWeb/.venv/bin/activate
pip3.12 install -r requirements.txt
chmod +x helpers/Patrick-5e39e57f-0550-49f3-8db6-d33cd139168f.pem
self_protection.py line 17:strPEMfileName = './helpers/Patrick-5e39e57f-0550-49f3-8db6-d33cd139168f.pem'.env (discord renames them into env). Put this file into project working directory.
Do not forget to set the correct local path to your sqllite 3 sqlite3://// in your .env fileapp.config['SECRET_KEY'] = 'your_secret_key' UNIX/MacOS/Linux
run the run_flask_app.sh
Windows:
$env:FLASK_APP = "app.py"
flask run --host=0.0.0.0 --port=5000