Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
elblogbruno committed Feb 3, 2021
2 parents af34779 + 1fab85f commit 589db08
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ This repo uses AI and the wonderful Notion to enable you to add anything on the
- [Installing](#installing)
- [Prerequisites](#prerequisites)
- [Love to try it?](#love-to-try-it)
- [Docker-Compose](#docker-compose)
- [Common Issues](#common-issues)
- [Roadmap](#roadmap)

Expand Down Expand Up @@ -40,11 +41,14 @@ You need to have an account on [Notion.so](https://notion.so/) and need to be lo

### Getting your credentials

On to the chrome extension settings, you can get your needed token_v2! It is necessary for the Python server. (Hidden in the photo for obvious reasons) | For AI Tagging you need to create a free account at [Clarifai](https://www.clarifai.com/) and create an Application named whatever you want and get the API key.
On to the chrome extension settings, you can get your needed token_v2! It is necessary for the Python server. (Hidden in the photo for obvious reasons) | For AI Tagging you need to create a free account at [Clarifai](https://www.clarifai.com/) and create an Application named whatever you want and get the API key.(*)
:-------------------------:|:-------------------------:
![](/doc/getting_cookie.png) | ![](/doc/clarifai.png)

TokenV2 is updated automatically when it changes (it occurs when you log out of notion or it expires), so Notion AI My Mind should always work. ☻ You can also change it manually of course.

*If you enter a clarifai api key, clarifai will be used. (Clarifai is cloud base, non gpu dependant, image is tagged on clarifai's servers) if you leave it blank it will use local tensorflow (will use cores of your server but image will be processed locally)

### Love to try it?

To install the python server, fire up your linux distributed machine and run this command.
Expand All @@ -71,7 +75,7 @@ cd NotionAI-MyMind && pip -r install requirements.txt
python server.py \\Python 3.5 or up needed.
```
- Step 4. Create Notion Database.
It must have this properties selected and add more properties if you want, but the selected ones must exist. (AITagsText and URL)
It must have this properties selected and add more properties if you want, but the selected ones must exist. (AITagsText (text) and URL (url property))
![Notion Screen](/doc/notion-database-howto.jpg)

- Step 5. Go to your servers IP and fill the data needed (Token, Notion Database URL and clarifai api key).
Expand All @@ -87,5 +91,25 @@ It must have this properties selected and add more properties if you want, but t

- Step 8. ENJOY!

## Docker-Compose
You can run the server on docker container. Change the [SERVER_PORT] variable with the desired port to run the server with. Then simply call `docker-compose up -d`.

```yaml
version: '3.4'

services:
app:
image: elblogbruno/notion-ai-mymind:latest
ports:
- [SERVER_PORT]:5000
```
When a new update is available, you can call :
```
docker-compose stop notionai-mymind
docker-compose up -d notionai-mymind
```

## Roadmap
- You can check the roadmap here: https://github.com/elblogbruno/NotionAI-MyMind/projects/1

0 comments on commit 589db08

Please sign in to comment.