sagard21 commited on
Commit
67c58d7
·
1 Parent(s): c24b3be

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -2
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),