PrivEcho/encrypted_sentiment_analysis
0
Sentiment Analysis With FHE And EZKL
Launch locally
- First, create a virtual env and activate it:
conda create --name sentiment_analysis_demo python=3.10.11
conda activate sentiment_analysis_demo- Then, install required packages:
pip3 install pip --upgrade
pip3 install -U pip wheel setuptools --ignore-installed
pip3 install -r requirements.txt --ignore-installedCheck it finish well (with a "Done!"). Please note that the actual model initialization and training can be found in the SentimentClassification notebook (see below).
Compile the FHE algorithm
Download data
pip3 install kaggle
./0_download_data.shCompile
cd 1_build
python3 main.pyLaunch the app locally
- In a terminal:
cd 2_run
cp ../config.py.example config.py
python3 app.pyLaunch docker
TODO
Interact with the application
Open the given URL link (search for a line like Running on local URL: http://127.0.0.1:8888/ in the terminal).
