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