Based on the Hot Dog or Not app from the TV Show Silicon Valley.
We use
- Local ai-vm
- Run the model on a large hotdog or not / food dataset
- Then a local NGROK
AIVM usage
- Lenet5 Model
- Uploaded custom model trained on the dataset
- Then running the predictions from model
- Accuracy: 60ish%
- You need a
kaggle.json
setup in order to interact with the files - NGROK
- Slack Bot API KEY
- Enable these permissions on the bot in
EVENT SUBSCRIPTIONS
- Also disabled
SOCKET MODE
for Slack for the local development process.
Files
bot.py
to run the codefine-tuning-lenet5.ipynb
if you want to fine tune the model further.
Installation
- Clone this repo
- Create a virtual environment to run Python
python3 -m venv .venv
- Linux / Mac:
source .venv/bin/activate
and Windows:.\venv\Scripts\activate
pip install .
Running it You will have to use 3 seprate terminal windows to make it work.
- Run AIVM by running
aivm-devnet
and wait for all of the ProxyServer to start listening - Run
python3 bot.py
in your venv to run the bot - Then run
ngrok http 8080
to run NGROK on a local port - In the NGROK terminal, you should have a forwarding URL like:
https://XXXX-XXX-XXX-XXX-XXX.ngrok-free.app
. Copy and paste this into the Request URL and ensure it pings your NGROK server + passes the check - Interact with your SlackBot by
@
the bot with a file of a hotdog or not and you should receive a200
code and a reply.
Feel free to reach out on Github Discussions if any issues.