Update README.md
Browse files
README.md
CHANGED
@@ -29,8 +29,6 @@ This model is an attempt to simplify code understanding by generating line by li
|
|
29 |
```py
|
30 |
from transformers import AutoTokenizer, T5ForConditionalGeneration, SummarizationPipeline
|
31 |
|
32 |
-
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
33 |
-
|
34 |
pipeline = SummarizationPipeline(
|
35 |
model=T5ForConditionalGeneration.from_pretrained("sagard21/python-code-explainer"),
|
36 |
tokenizer=AutoTokenizer.from_pretrained("sagard21/python-code-explainer", skip_special_tokens=True),
|
|
|
29 |
```py
|
30 |
from transformers import AutoTokenizer, T5ForConditionalGeneration, SummarizationPipeline
|
31 |
|
|
|
|
|
32 |
pipeline = SummarizationPipeline(
|
33 |
model=T5ForConditionalGeneration.from_pretrained("sagard21/python-code-explainer"),
|
34 |
tokenizer=AutoTokenizer.from_pretrained("sagard21/python-code-explainer", skip_special_tokens=True),
|