Update README.md
Browse files
README.md
CHANGED
|
@@ -54,12 +54,12 @@ Laxo Pro is intended for a wide range of applications, including:
|
|
| 54 |
**Example with `transformers.pipeline`:**
|
| 55 |
|
| 56 |
```python
|
| 57 |
-
# Use a pipeline as a high-level helper
|
| 58 |
from transformers import pipeline
|
| 59 |
|
| 60 |
messages = [
|
|
|
|
| 61 |
{"role": "user", "content": "Who are you?"},
|
| 62 |
]
|
| 63 |
-
pipe = pipeline("text-generation", model="explorewithai/LaxoPro")
|
| 64 |
pipe(messages)
|
| 65 |
```
|
|
|
|
| 54 |
**Example with `transformers.pipeline`:**
|
| 55 |
|
| 56 |
```python
|
|
|
|
| 57 |
from transformers import pipeline
|
| 58 |
|
| 59 |
messages = [
|
| 60 |
+
{"role": "user", "content": "You are alex, a helpful assistant"},
|
| 61 |
{"role": "user", "content": "Who are you?"},
|
| 62 |
]
|
| 63 |
+
pipe = pipeline("text-generation", model="explorewithai/LaxoPro", device_map = "cuda")
|
| 64 |
pipe(messages)
|
| 65 |
```
|