Commit ·
b8c61aa
1
Parent(s): 90eea73
Update README.md
Browse files
README.md
CHANGED
|
@@ -19,19 +19,8 @@ This model has the potential to produce unusual or unexpected results, due to th
|
|
| 19 |
|
| 20 |
|
| 21 |
**How to use:**
|
| 22 |
-
You can use this model by providing a product or brand name as an input. For example
|
| 23 |
|
| 24 |
-
```
|
| 25 |
-
from transformers import GPT2LMHeadModel, GPT2Tokenizer
|
| 26 |
-
|
| 27 |
-
tokenizer = GPT2Tokenizer.from_pretrained("PeterBrendan/AdsGPT2")
|
| 28 |
-
model = GPT2LMHeadModel.from_pretrained("PeterBrendan/AdsGPT2")
|
| 29 |
-
|
| 30 |
-
inputs = tokenizer("Nike Basketball", return_tensors="pt")
|
| 31 |
-
outputs = model.generate(**inputs, max_length=100)
|
| 32 |
-
|
| 33 |
-
print(tokenizer.decode(outputs[0]))
|
| 34 |
-
```
|
| 35 |
|
| 36 |
**Training data:**
|
| 37 |
This model was trained on a dataset consisting of over 10,000 programmatic ad creatives, which included a variety of different product and brand advertisements. The data was collected from various ad platforms and represents a wide range of ad styles and formats.
|
|
|
|
| 19 |
|
| 20 |
|
| 21 |
**How to use:**
|
| 22 |
+
You can use this model by providing a product or brand name as an input. For example: *Nike Air Force Ones*
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
**Training data:**
|
| 26 |
This model was trained on a dataset consisting of over 10,000 programmatic ad creatives, which included a variety of different product and brand advertisements. The data was collected from various ad platforms and represents a wide range of ad styles and formats.
|