bhadresh-savani commited on
Commit
219dea3
1 Parent(s): 176aacd

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -20,8 +20,8 @@ Her friends are very nice people.
20
  ## How to use it in your code:
21
  ```python
22
  from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
23
- tokenizer = AutoTokenizer.from_pretrained("flax-community/byt5-base-wikisplit")
24
- model = AutoModelForSeq2SeqLM.from_pretrained("flax-community/byt5-base-wikisplit")
25
  complex_sentence = "This comedy drama is produced by Tidy , the company she co-founded in 2008 with her husband David Peet , who is managing director ."
26
  sample_tokenized = tokenizer(complex_sentence, return_tensors="pt")
27
  answer = model.generate(sample_tokenized['input_ids'], attention_mask = sample_tokenized['attention_mask'], max_length=256, num_beams=5)
 
20
  ## How to use it in your code:
21
  ```python
22
  from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
23
+ tokenizer = AutoTokenizer.from_pretrained("flax-community/t5-large-wikisplit")
24
+ model = AutoModelForSeq2SeqLM.from_pretrained("flax-community/t5-large-wikisplit")
25
  complex_sentence = "This comedy drama is produced by Tidy , the company she co-founded in 2008 with her husband David Peet , who is managing director ."
26
  sample_tokenized = tokenizer(complex_sentence, return_tensors="pt")
27
  answer = model.generate(sample_tokenized['input_ids'], attention_mask = sample_tokenized['attention_mask'], max_length=256, num_beams=5)