Update README.md
Browse files
README.md
CHANGED
|
@@ -27,7 +27,7 @@ pip install transformers datasets torch
|
|
| 27 |
|
| 28 |
|
| 29 |
## ๐ Contents
|
| 30 |
-
- `
|
| 31 |
- Fine-tuned model files (`pytorch_model.bin`, `config.json`, `tokenizer.json`, etc.)
|
| 32 |
|
| 33 |
## ๐ Usage
|
|
@@ -38,7 +38,7 @@ After uploading the model to the Hugging Face Hub, you can use it like this:
|
|
| 38 |
```python
|
| 39 |
from transformers import BartForConditionalGeneration, BartTokenizer
|
| 40 |
|
| 41 |
-
model_name = "
|
| 42 |
tokenizer = BartTokenizer.from_pretrained(model_name)
|
| 43 |
model = BartForConditionalGeneration.from_pretrained(model_name)
|
| 44 |
|
|
|
|
| 27 |
|
| 28 |
|
| 29 |
## ๐ Contents
|
| 30 |
+
- `bart_base_fine_tuned_cnn.ipynb` โ Jupyter notebook used for fine-tuning
|
| 31 |
- Fine-tuned model files (`pytorch_model.bin`, `config.json`, `tokenizer.json`, etc.)
|
| 32 |
|
| 33 |
## ๐ Usage
|
|
|
|
| 38 |
```python
|
| 39 |
from transformers import BartForConditionalGeneration, BartTokenizer
|
| 40 |
|
| 41 |
+
model_name = "haydarkadioglu/bart-base-cnn-finetuned" # replace with your repo name
|
| 42 |
tokenizer = BartTokenizer.from_pretrained(model_name)
|
| 43 |
model = BartForConditionalGeneration.from_pretrained(model_name)
|
| 44 |
|