Update README.md
Browse files
README.md
CHANGED
|
@@ -57,7 +57,7 @@ from transformers import T5ForConditionalGeneration, T5Tokenizer
|
|
| 57 |
tokenizer = T5Tokenizer.from_pretrained("Ivanhoe9/finetune_T5_small_title_generation_NLP_cours")
|
| 58 |
model = T5ForConditionalGeneration.from_pretrained("Ivanhoe9/finetune_T5_small_title_generation_NLP_cours")
|
| 59 |
|
| 60 |
-
article = "This is an article about the latest technological innovations in the field of AI and how they are impacting industries."
|
| 61 |
input_text = "Generate a title: " + article
|
| 62 |
input_ids = tokenizer.encode(input_text, return_tensors="pt")
|
| 63 |
|
|
|
|
| 57 |
tokenizer = T5Tokenizer.from_pretrained("Ivanhoe9/finetune_T5_small_title_generation_NLP_cours")
|
| 58 |
model = T5ForConditionalGeneration.from_pretrained("Ivanhoe9/finetune_T5_small_title_generation_NLP_cours")
|
| 59 |
|
| 60 |
+
article = "This is an article about the latest technological innovations in the field of AI and how they are impacting industries."
|
| 61 |
input_text = "Generate a title: " + article
|
| 62 |
input_ids = tokenizer.encode(input_text, return_tensors="pt")
|
| 63 |
|