Skip to content

AiShields is an open-source Artificial Intelligence Data Input and Output Sanitizer

Notifications You must be signed in to change notification settings

AiShieldsOrg/AiShieldsWeb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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

  1. a) Unix/Linux/Mac:
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
  1. Certificate for Dev Encryption Setup a) Download the file located in our discord server: https://discordapp.com/channels/1229942715450523658/1229998804099403777/1234622867199758366 Download and copy the file: Patrick-5e39e57f-0550-49f3-8db6-d33cd139168f.pem to helpers/Patrick-5e39e57f-0550-49f3-8db6-d33cd139168f.pem (file from Discord Server App # desktop-web-frontend)
  2. After you copy correct pem file, change the file setting to executable:
chmod +x  helpers/Patrick-5e39e57f-0550-49f3-8db6-d33cd139168f.pem 
  1. As soon as the file is executable, show the correct path in self_protection.py line 17:
strPEMfileName = './helpers/Patrick-5e39e57f-0550-49f3-8db6-d33cd139168f.pem'
  1. Download .env file from discord: https://discord.com/channels/1229942715450523658/1230004837845045369/1241936868099096586 Do not forget to rename file into .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 file
  2. Set the secret SQLite key to your_secret_key [optional]
app.config['SECRET_KEY'] = 'your_secret_key' 
  1. run in Flask or debug in IDE:

UNIX/MacOS/Linux run the run_flask_app.sh

Windows:

$env:FLASK_APP = "app.py"
flask run --host=0.0.0.0 --port=5000