ak0601 commited on
Commit
129d443
·
verified ·
1 Parent(s): 3ab1c51

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -0
README.md CHANGED
@@ -72,6 +72,14 @@ Users (both direct and downstream) should be made aware of the risks, biases and
72
  ## How to Get Started with the Model
73
 
74
  Use the code below to get started with the model.
 
 
 
 
 
 
 
 
75
 
76
 
77
  [More Information Needed]
 
72
  ## How to Get Started with the Model
73
 
74
  Use the code below to get started with the model.
75
+ ```python
76
+ from transformers import pipline
77
+ model_id = "zephyr-7b-beta-Agent-Instruct-math"
78
+ pipe = pipeline(task="text-generation", model=model, tokenizer=tokenizer, max_length=600)
79
+ prompt = "Enter your query"
80
+ result = pipe(prompt)
81
+ print(result[0]['generated_text'])
82
+
83
 
84
 
85
  [More Information Needed]