explorewithai commited on
Commit
bb5d125
·
verified ·
1 Parent(s): eb0b8eb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -13
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
- from transformers import AutoModelForCausalLM, AutoTokenizer
60
-
61
- model_name = "frameai/LaxoPro" # Replace with your model's name on Hugging Face
62
- model = AutoModelForCausalLM.from_pretrained(model_name)
63
- tokenizer = AutoTokenizer.from_pretrained(model_name)
64
-
65
- # Example usage:
66
- input_text = "What is the capital of France?"
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
  ```