Add hello-world
This commit is contained in:
parent
da279152ba
commit
4ed5d70830
4 changed files with 37 additions and 4 deletions
28
README.md
28
README.md
|
|
@ -1,12 +1,34 @@
|
|||
# GreatAI
|
||||
|
||||
**work in progress, do not use!**
|
||||
|
||||
[](https://github.com/ScoutinScience/great_ai/actions/workflows/check.yml) [](https://sonar.scoutinscience.com/dashboard?id=great-ai) [](https://github.com/ScoutinScience/great_ai/actions/workflows/publish.yaml) [](https://github.com/ScoutinScience/great_ai/actions/workflows/docker.yaml)
|
||||
|
||||
|
||||
## 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
|
||||
```
|
||||
|
||||
Find it on [DockerHub](https://hub.docker.com/repository/docker/schmelczera/great-ai)
|
||||
Find it on [PyPI](https://pypi.org/project/great-ai/)
|
||||
```python
|
||||
from great_ai import GreatAI
|
||||
|
||||
**work in progress, do not use!**
|
||||
@GreatAI.create
|
||||
def hello_world(name: str) -> str:
|
||||
return f"Hello {name}!"
|
||||
```
|
||||
> Create a new file called `main.py`
|
||||
|
||||
Deploy by executing `python3 -m great-ai main.py`
|
||||
|
||||
Find the dashboard at [http://localhost:6060](http://localhost:6060/dashboard/).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue