jojo-ai-mst commited on
Commit
1fe4a4e
1 Parent(s): 58b2f0e

Y5Bot documentation

Browse files
Files changed (1) hide show
  1. README.md +12 -1
README.md CHANGED
@@ -13,16 +13,27 @@ metrics:
13
 
14
  # Y5 Bot
15
 
16
- Y5 Bot is a text2text transfer transformer model woking in English Language.
17
 
18
  It is lightweight, fast, and easy to use for text generation.
19
 
 
 
20
  # How to use
21
 
22
  ```
23
  pip install transformers
24
  ```
25
 
 
 
 
 
 
 
 
 
 
26
  ```python
27
  model = T5ForConditionalGeneration.from_pretrained("jojo-ai-mst/Y5Bot")
28
  tokenizer = T5Tokenizer.from_pretrained("jojo-ai-mst/Y5Bot")
 
13
 
14
  # Y5 Bot
15
 
16
+ Y5 Bot is a text2text transfer transformer model working in English Language.
17
 
18
  It is lightweight, fast, and easy to use for text generation.
19
 
20
+ Y5 Bot can answer and generate text short to the main points.
21
+
22
  # How to use
23
 
24
  ```
25
  pip install transformers
26
  ```
27
 
28
+ ## pipeline approach
29
+
30
+ ```python
31
+ from transformers import pipeline
32
+
33
+ generator = pipeline(model="jojo-ai-mst/Y5Bot")
34
+ generator("What is Artificial Intelligence?")
35
+ ```
36
+
37
  ```python
38
  model = T5ForConditionalGeneration.from_pretrained("jojo-ai-mst/Y5Bot")
39
  tokenizer = T5Tokenizer.from_pretrained("jojo-ai-mst/Y5Bot")