PardisSzah commited on
Commit
f0c3054
1 Parent(s): eef8bb4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -4
README.md CHANGED
@@ -13,14 +13,13 @@ This model is fine-tuned to generate formal text from informal text based on the
13
  ## Usage
14
 
15
  ```python
16
-
17
- from transformers import AutoModelForSeq2SeqLM, MT5Tokenizer
18
 
19
  model = T5ForConditionalGeneration.from_pretrained('PardisSzah/BasePersianTextFormalizer')
20
  tokenizer = AutoTokenizer.from_pretrained('PardisSzah/BasePersianTextFormalizer')
21
 
22
- from transformers import (T5ForConditionalGeneration, AutoTokenizer, pipeline)
23
- import torch
24
  pipe = pipeline(task='text2text-generation', model=model, tokenizer=tokenizer)
25
  def test_model(text):
26
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
 
13
  ## Usage
14
 
15
  ```python
16
+ from transformers import (T5ForConditionalGeneration, AutoTokenizer, pipeline)
17
+ import torch
18
 
19
  model = T5ForConditionalGeneration.from_pretrained('PardisSzah/BasePersianTextFormalizer')
20
  tokenizer = AutoTokenizer.from_pretrained('PardisSzah/BasePersianTextFormalizer')
21
 
22
+
 
23
  pipe = pipeline(task='text2text-generation', model=model, tokenizer=tokenizer)
24
  def test_model(text):
25
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')