Skip to content

docs: fix README Python examples#193

Merged
tarilabs merged 1 commit into
containers:mainfrom
jonburdo:docs/readme-python-examples
Jul 7, 2026
Merged

docs: fix README Python examples#193
tarilabs merged 1 commit into
containers:mainfrom
jonburdo:docs/readme-python-examples

Conversation

@jonburdo

@jonburdo jonburdo commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Align the README Python snippets with the current import path and CLI model card usage so users can follow the examples without hitting an import error or passing the model card in the wrong argument.

Align the README Python snippets with the current import path and CLI
model card usage so users can follow the examples without hitting an
import error or passing the model card in the wrong argument.

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Jon Burdo <jon@jonburdo.com>
Comment thread README.md

# Add the layers
oci_layers_on_top(model_dir, model_files)
oci_layers_on_top(model_dir, model_files, modelcard=modelcard)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More consistent with the CLI example

uv run olot $IMAGE_DIR --modelcard tests/data/sample-model/README.md tests/data/sample-model/model.joblib

@tarilabs tarilabs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks a lot

Comment thread README.md

```python
from olot.basic import oci_layers_on_top
from olot.basics import oci_layers_on_top

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch 😅

@tarilabs tarilabs merged commit c4890f6 into containers:main Jul 7, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants