Instructions to use microsoft/colipri with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- COLIPRI
How to use microsoft/colipri with COLIPRI:
pip install colipri
from colipri import get_model from colipri import get_processor from colipri import load_sample_ct from colipri import ZeroShotImageClassificationPipeline model = get_model().cuda() processor = get_processor() pipeline = ZeroShotImageClassificationPipeline(model, processor) image = load_sample_ct() pipeline(image, ["No lung nodules", "Lung nodules"])
- Notebooks
- Google Colab
- Kaggle
Sync uv.lock to version 0.1.3 and keep it bumped
Browse filesThe 0.1.2 -> 0.1.3 version bump updated pyproject.toml and __init__.py
but not uv.lock, so CI's 'uv sync --locked' failed. Update the locked
colipri version and add uv.lock as a bump-my-version target so future
bumps keep it in sync.
- pyproject.toml +11 -0
- uv.lock +1 -1
pyproject.toml
CHANGED
|
@@ -88,3 +88,14 @@ replace = 'version = "{new_version}"'
|
|
| 88 |
filename = "src/colipri/__init__.py"
|
| 89 |
search = '__version__ = "{current_version}"'
|
| 90 |
replace = '__version__ = "{new_version}"'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
filename = "src/colipri/__init__.py"
|
| 89 |
search = '__version__ = "{current_version}"'
|
| 90 |
replace = '__version__ = "{new_version}"'
|
| 91 |
+
|
| 92 |
+
[[tool.bumpversion.files]]
|
| 93 |
+
filename = "uv.lock"
|
| 94 |
+
search = '''
|
| 95 |
+
name = "colipri"
|
| 96 |
+
version = "{current_version}"
|
| 97 |
+
'''
|
| 98 |
+
replace = '''
|
| 99 |
+
name = "colipri"
|
| 100 |
+
version = "{new_version}"
|
| 101 |
+
'''
|
uv.lock
CHANGED
|
@@ -271,7 +271,7 @@ wheels = [
|
|
| 271 |
|
| 272 |
[[package]]
|
| 273 |
name = "colipri"
|
| 274 |
-
version = "0.1.
|
| 275 |
source = { editable = "." }
|
| 276 |
dependencies = [
|
| 277 |
{ name = "accelerate" },
|
|
|
|
| 271 |
|
| 272 |
[[package]]
|
| 273 |
name = "colipri"
|
| 274 |
+
version = "0.1.3"
|
| 275 |
source = { editable = "." }
|
| 276 |
dependencies = [
|
| 277 |
{ name = "accelerate" },
|