yousefg commited on
Commit
9a7f8c8
·
verified ·
1 Parent(s): 1cee2bb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -0
README.md CHANGED
@@ -38,6 +38,7 @@ This is the model card of a 🤗 transformers model that has been pushed on the
38
 
39
  Use the code below to get started with the model.
40
 
 
41
  from transformers import BartForConditionalGeneration, AutoTokenizer
42
 
43
  model = BartForConditionalGeneration.from_pretrained('yousefg/Academ-0.5')
@@ -65,6 +66,7 @@ attention_mask = torch.tensor(batch['attention_mask']).unsqueeze(0).to(device)
65
 
66
  summary = get_summary(input_ids, attention_mask, 1654)
67
  print(summary)
 
68
 
69
  ## Training Details
70
 
 
38
 
39
  Use the code below to get started with the model.
40
 
41
+ ```
42
  from transformers import BartForConditionalGeneration, AutoTokenizer
43
 
44
  model = BartForConditionalGeneration.from_pretrained('yousefg/Academ-0.5')
 
66
 
67
  summary = get_summary(input_ids, attention_mask, 1654)
68
  print(summary)
69
+ ```
70
 
71
  ## Training Details
72