Update README.md
Browse files
README.md
CHANGED
@@ -56,17 +56,12 @@ Laxo Pro is intended for a wide range of applications, including:
|
|
56 |
**Example with `transformers` (replace with actual loading and usage code):**
|
57 |
|
58 |
```python
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
inputs = tokenizer(input_text, return_tensors="pt")
|
68 |
-
outputs = model.generate(**inputs)
|
69 |
-
decoded_output = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
70 |
-
|
71 |
-
print(decoded_output)
|
72 |
```
|
|
|
56 |
**Example with `transformers` (replace with actual loading and usage code):**
|
57 |
|
58 |
```python
|
59 |
+
# Use a pipeline as a high-level helper
|
60 |
+
from transformers import pipeline
|
61 |
+
|
62 |
+
messages = [
|
63 |
+
{"role": "user", "content": "Who are you?"},
|
64 |
+
]
|
65 |
+
pipe = pipeline("text-generation", model="explorewithai/LaxoPro")
|
66 |
+
pipe(messages)
|
|
|
|
|
|
|
|
|
|
|
67 |
```
|