paper summarizer
1.0.0
A Slack Bot for summarizing arXiv papers, powered by OpenAI LLMs.
This repository offers 2 main features:
Currently, the bot supports only papers posted on arXiv.
git clone https://github.com/discus0434/paper-summarizer.git
If you do not use CUDA (i.e., you use only CPU), you can modify Dockerfile
as follows:
- FROM paddlepaddle/paddle:2.4.1-gpu-cuda11.2-cudnn8.2-trt8.0
+ FROM paddlepaddle/paddle:2.4.1
Then, build a Docker image:
cd paper-summarizer/docker && make build
OPENAI_ORGANIZATION
might be optional.
echo "OPENAI_ORGANIZATION=org-XXX" >> .env
echo "OPENAI_API_KEY=sk-XXX" >> .env
echo "SLACK_INCOMING_WEBHOOK_URL=https://hooks.slack.com/services/XXX/XXX/XXX" >> .env
echo "SLACK_SIGNING_SECRET=XXX" >> .env
echo "SLACK_BOT_TOKEN=xoxb-XXX" >> .env
You can run the API with the following command:
make run
If your PC is Windows, run below in git bash:
make run-win
docker exec -it <container id> bash
python3 app.py
Then, forward the port by using ngrok or something like that.
This repository is licensed under AGPLv3. See LICENSE for more information.