https://github.com/hsm207/demo-dlt
https://github.com/hsm207/demo-dlt
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hsm207/demo-dlt
- Owner: hsm207
- License: gpl-3.0
- Created: 2022-08-07T14:15:42.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-07T19:50:55.000Z (about 3 years ago)
- Last Synced: 2025-01-14T11:17:24.625Z (9 months ago)
- Language: Python
- Size: 17.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Introduction
A demo of the DLT tool.
# Prerequisites
1. Docker compose
2. A REST client (to interact with the APIs)# Architecture
There are 3 components:
1. ui
2. db
3. model## The `ui` Component
This component initialises the `db` component.
## The `db` Component
This is a postgresql database. There is a database named `demo`. Inside this database is a table named `message` that has the following entries:
| id | text | sentiment | confidence |
|----|---------------|-----------|------------|
| 1 | I am so happy | | |
| 2 | I am so sad | | |
| 3 | I am fine | | |## The `model` Component
This component has a `predict` endpoint that takes a `text` and returns the `sentiment` and `confidence`.
# API Documentation
See [api.http](api.http) for example API calls.