The app takes a link to a VKontakte post and visualizes its comments using a model from Hugging Face.
python -m tests.utilsTests
- Clone reopsiroty
git clone https://github.com/i-pankrat/comment-visualizer-vk
- Create venv
cd comment-visualizer-vk
python -m venv venv
. venv/bin/activate
- Install requirements
pip install -r requirements.txt
- Install torch
- Log to hugging faces
huggingface-cli login
- Add your vk access token to your environment variable. Create an application in vk to get the access token. You can create app here. Then go to setttings of the created app and find the 'Service token' there. That's what you need to put insted of YOUR_ACESS_TOKEN in the command below.
export VK_ACCESS_TOKEN=YOUR_ACESS_TOKEN
- Start the application!
cd src/
streamlit run steamlit_app.py