63 lines
No EOL
2.2 KiB
Markdown
63 lines
No EOL
2.2 KiB
Markdown
#  GreatAI
|
|
|
|
> GreatAI helps you easily transform your prototype AI code into production-ready software.
|
|
|
|
[](https://sonar.scoutinscience.com/dashboard?id=great-ai)
|
|
[](https://sonar.scoutinscience.com/dashboard?id=great-ai)
|
|
[](https://sonar.scoutinscience.com/dashboard?id=great-ai)
|
|
[](https://github.com/schmelczer/great-ai/actions/workflows/test.yml)
|
|
[](https://github.com/schmelczer/great-ai/actions/workflows/publish.yaml)
|
|
[](https://github.com/schmelczer/great-ai/actions/workflows/docker.yaml)
|
|
[](https://pepy.tech/project/great-ai)
|
|
|
|
[Check out the documentation here](https://great-ai.scoutinscience.com/).
|
|
|
|
|
|
## Find `great-ai` on [DockerHub](https://hub.docker.com/repository/docker/schmelczera/great-ai)
|
|
|
|
```sh
|
|
docker run -p6060:6060 schmelczera/great-ai
|
|
```
|
|
|
|
Find the dashboard at [http://localhost:6060](http://localhost:6060/dashboard/).
|
|
|
|
|
|
## Find `great-ai` on [PyPI](https://pypi.org/project/great-ai/)
|
|
|
|
```sh
|
|
pip install great-ai
|
|
```
|
|
|
|
```python
|
|
from great_ai import GreatAI
|
|
|
|
@GreatAI.create
|
|
def hello_world(name: str) -> str:
|
|
return f"Hello {name}!"
|
|
```
|
|
> Create a new file called `main.py`
|
|
|
|
Deploy by executing `great-ai main.py`
|
|
> Or: `great_ai main.py`
|
|
|
|
> Or: `python3 -m great_ai main.py`
|
|
|
|
Find the dashboard at [http://localhost:6060](http://localhost:6060/dashboard/).
|
|
|
|
### Contribute
|
|
|
|
|
|
#### Install
|
|
|
|
```sh
|
|
python3 -m venv --copies .env
|
|
source .env/bin/activate
|
|
python3 -m pip install flit
|
|
python3 -m flit install --symlink --deps=all
|
|
```
|
|
|
|
#### Documentation
|
|
|
|
```sh
|
|
mkdocs serve --dirtyreload
|
|
``` |