Use pipeline-first OFoldX usage
Browse files
README.md
CHANGED
|
@@ -98,6 +98,11 @@ pip install ofoldx
|
|
| 98 |
Load the artifact from `oteam/boltz2` using the OFoldX `Auto*` interface:
|
| 99 |
|
| 100 |
```python
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
from ofoldx import AutoModel
|
| 102 |
|
| 103 |
model = AutoModel.from_pretrained("oteam/boltz2")
|
|
|
|
| 98 |
Load the artifact from `oteam/boltz2` using the OFoldX `Auto*` interface:
|
| 99 |
|
| 100 |
```python
|
| 101 |
+
from ofoldx.pipelines import Pipeline
|
| 102 |
+
|
| 103 |
+
pipeline = Pipeline.from_pretrained("oteam/boltz2")
|
| 104 |
+
output = pipeline(...)
|
| 105 |
+
|
| 106 |
from ofoldx import AutoModel
|
| 107 |
|
| 108 |
model = AutoModel.from_pretrained("oteam/boltz2")
|