Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
vietanhdev committed Nov 3, 2023
1 parent 46ca32a commit 08eef85
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ In an era where AI is transforming every aspect of our lives, I recognized the n

## Architecture

![Architecturer](images/p8hub-architecture.svg)
![Architecture](images/p8hub-architecture.svg)

The architecture of P8Hub consists of two main components: a FastAPI backend and a Next.js frontend. The backend and frontend communicate with each other via REST API. For ease of deployment, I build frontend into static files and serve them from the backend. The interaction with Docker (running, stopping, and monitoring services) is done via [Python on Whales](https://pypi.org/project/python-on-whales/) package.

## Features

Expand All @@ -22,10 +24,10 @@ Some features are still in development. You can check the progress here.
- [x] [docTR](https://github.com/mindee/doctr) - Document Text Recognition.
- [x] [Whishper](https://github.com/pluja/whishper/) - Text to speech service.
- [x] [TTS Generation](https://github.com/rsxdalv/tts-generation-webui) (GPU Only)
- [x] Docker extension.
- [ ] Image generation service.
- [ ] Add documentation.
- [ ] Add tests.
- [ ] Docker extension.
- [ ] App editor.

The applications were not selected carefully due to limited time. I think many more interesting AI applications can be integrated into P8Hub. If you have any suggestions, please [let me know](https://github.com/vietanhdev/p8hub/pulls) or create a pull request.
Expand Down Expand Up @@ -63,6 +65,23 @@ You can also run Private AI Hub publicly to your network or change the port with
p8hub --host 0.0.0.0 --port 8080
```

### 3. Docker Extension (Experimental)

Docker Extension allows to extend the functionality of Docker Desktop. We've developed a Docker Extension for P8Hub. You can install it by running:

```shell
make install-extension
```

You should see the extension in Docker Desktop's UI.

![P8Hub Docker Extension](images/p8hub-docker-extension-screenshot.png)

**Architecture:**

![P8Hub Docker Extension Architecture](images/p8hub-docker-extension.svg)


## II. Development

### 1. Clone the source code
Expand Down
2 changes: 1 addition & 1 deletion images/p8hub-architecture.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/p8hub-docker-extension-screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions images/p8hub-docker-extension.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 08eef85

Please sign in to comment.