nichal commited on
Commit
71a3611
1 Parent(s): 1c7e835

how to use

Browse files
Files changed (1) hide show
  1. README.md +5 -1
README.md CHANGED
@@ -10,7 +10,11 @@ Used to rewrite questions using previous conversation turns into self-contained
10
 
11
  ## How to use
12
 
13
- # Example of usage
 
 
 
 
14
 
15
  ## Training data
16
  Initialized with pre-trained model PEGASUS-large, fine-tuned using cross-entropy and self-critical sequence training.
 
10
 
11
  ## How to use
12
 
13
+ ```python
14
+ >>> from transformers import PegasusForConditionalGeneration, PegasusTokenizer
15
+ >>> tokenizer = PegasusTokenizer.from_pretrained('nichal/pegasus_QR')
16
+ >>> model = PegasusForConditionalGeneration.from_pretrained('nichal/pegasus_QR')
17
+ ```
18
 
19
  ## Training data
20
  Initialized with pre-trained model PEGASUS-large, fine-tuned using cross-entropy and self-critical sequence training.