AiShieldsWeb
1.0.0
@Apprentices Aishields草稿Web前端設置:BCAMP.DEV數據和AI同類春季2024
項目:AI Aishields Web前端的數據消毒劑:
依賴項:Python 3.12.3,Sqlite3
mkdir aiShieldsLocal
cd aiShieldsLocal
運行文件: AiShieldsWeb/cloneMostRecentAndSetupEnv.sh
b)窗口:
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行中顯示正確的路徑17: strPEMfileName = './helpers/Patrick-5e39e57f-0550-49f3-8db6-d33cd139168f.pem'.env (contord inmames inmames inmames inmames inmames inmames inmames inmames inmames inmames inmames inmamemems inmamemem inmememements)。將此文件放入項目工作目錄中。不要忘記在.env文件中將正確的本地路徑設置為sqllite 3 sqlite3://// app . config [ 'SECRET_KEY' ] = 'your_secret_key' unix/macOS/linux運行run_flask_app.sh
視窗:
$env:FLASK_APP = "app.py"
flask run --host=0.0.0.0 --port=5000