Skip to content

Commit

Permalink
fix error in save and load
Browse files Browse the repository at this point in the history
  • Loading branch information
javierluraschi committed Jun 2, 2024
1 parent 1484cdd commit 4ea576e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
14 changes: 13 additions & 1 deletion python/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,20 @@ pip install poetry
poetry install
```

YOu can then run commands locally as follows:
You can then run commands locally as follows:

```bash
poetry run hal9 create my-project
```

Alternatevely,

```bash
pip install hal9
```

Followed by running as

```bash
hal9 create my-project
```
1 change: 1 addition & 0 deletions python/hal9/iobind.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json
from pathlib import Path

def load(file, default):
file_path = Path(file + ".json")
Expand Down
4 changes: 2 additions & 2 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[tool.poetry]
name = "hal9"
version = "2.1.8"
version = "2.1.9"
description = ""
authors = ["Javier Luraschi <[email protected]>"]
readme = "README.md"
include = ["templates/openai/app.py", "templates/docker/Dockerfile"]

[tool.poetry.dependencies]
python = ">=3.8,<3.9.7 || >3.9.7,<4.0"
python = ">=3.8w"
requests = "^2.28.2"

click = "^8.1.7"
Expand Down
2 changes: 1 addition & 1 deletion website/learn/genapps/conversations.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ To make your chatbot behave correctly even after Python restarts, we can store t

```python
from openai import OpenAI
from hal9 import h9
import hal9 as h9

messages = h9.load("messages", [{ "role": "system", "content": "Spanish replies" }])

Expand Down

0 comments on commit 4ea576e

Please sign in to comment.