Bachstelze
commited on
Commit
•
0d4bf06
1
Parent(s):
f037e69
Update README.md
Browse files
README.md
CHANGED
@@ -15,6 +15,25 @@ license: mit
|
|
15 |
# GPT-Rapgenerator
|
16 |
The Rapgenerator is trained for [nullsechsroy](https://genius.com/artists/Nullsechsroy) on an english [GPT2](https://huggingface.co/transformers/model_doc/gpt2.html) that is converted to a german [GerPT2](https://github.com/bminixhofer/gerpt2).
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
We used the [genius](https://docs.genius.com/#/songs-h2) songlyrics from the following artists:
|
19 |
|
20 |
['Ace Tee', 'Aligatoah', 'AnnenMayKantereit', 'Apache 207', 'Azad', 'Badmómzjay', 'Bausa', 'Blumentopf', 'Blumio', 'Capital Bra', 'Casper', 'Celo & Abdi', 'Cro', 'Dardan', 'Dendemann', 'Die P', 'Dondon', 'Dynamite Deluxe', 'Edgar Wasser', 'Eko Fresh', 'Farid Bang', 'Favorite', 'Genetikk', 'Haftbefehl', 'Haiyti', 'Huss und Hodn', 'Jamule', 'Jamule', 'Juju', 'Kasimir1441', 'Katja Krasavice', 'Kay One', 'Kitty Kat', 'Kool Savas', 'LX & Maxwell', 'Leila Akinyi', 'Loredana', 'Loredana & Mozzik', 'Luciano', 'Marsimoto', 'Marteria', 'Morlockk Dilemma', 'Moses Pelham', 'Nimo', 'NullSechsRoy', 'Prinz Pi', 'SSIO', 'SXTN', 'Sabrina Setlur', 'Samy Deluxe', 'Sanito', 'Sebastian Fitzek', 'Shirin David', 'Summer Cem', 'T-Low', 'Ufo361', 'YBRE', 'YFG Pave']
|
|
|
15 |
# GPT-Rapgenerator
|
16 |
The Rapgenerator is trained for [nullsechsroy](https://genius.com/artists/Nullsechsroy) on an english [GPT2](https://huggingface.co/transformers/model_doc/gpt2.html) that is converted to a german [GerPT2](https://github.com/bminixhofer/gerpt2).
|
17 |
|
18 |
+
# Usage
|
19 |
+
```
|
20 |
+
from transformers import pipeline, AutoTokenizer,AutoModelForCausalLM
|
21 |
+
|
22 |
+
german_gpt_model = "stefan-it/german-gpt2-larger"
|
23 |
+
rap_model = AutoModelForCausalLM.from_pretrained("Bachstelze/Rapgenerator")
|
24 |
+
tokenizer = AutoTokenizer.from_pretrained(german_gpt_model)
|
25 |
+
|
26 |
+
rap_pipe = pipeline('text-generation',
|
27 |
+
model=rap_model,
|
28 |
+
tokenizer=german_gpt_model,
|
29 |
+
pad_token_id=tokenizer.eos_token_id,
|
30 |
+
max_length=250)
|
31 |
+
|
32 |
+
# create a new title with Deluxe as rap-feature
|
33 |
+
title_line = rap_pipe("[Title_nullsechsroy feat. Deluxe_")[0]['generated_text']
|
34 |
+
raw_title_line= title_line[33 : int(title_line.index("]"))]
|
35 |
+
```
|
36 |
+
|
37 |
We used the [genius](https://docs.genius.com/#/songs-h2) songlyrics from the following artists:
|
38 |
|
39 |
['Ace Tee', 'Aligatoah', 'AnnenMayKantereit', 'Apache 207', 'Azad', 'Badmómzjay', 'Bausa', 'Blumentopf', 'Blumio', 'Capital Bra', 'Casper', 'Celo & Abdi', 'Cro', 'Dardan', 'Dendemann', 'Die P', 'Dondon', 'Dynamite Deluxe', 'Edgar Wasser', 'Eko Fresh', 'Farid Bang', 'Favorite', 'Genetikk', 'Haftbefehl', 'Haiyti', 'Huss und Hodn', 'Jamule', 'Jamule', 'Juju', 'Kasimir1441', 'Katja Krasavice', 'Kay One', 'Kitty Kat', 'Kool Savas', 'LX & Maxwell', 'Leila Akinyi', 'Loredana', 'Loredana & Mozzik', 'Luciano', 'Marsimoto', 'Marteria', 'Morlockk Dilemma', 'Moses Pelham', 'Nimo', 'NullSechsRoy', 'Prinz Pi', 'SSIO', 'SXTN', 'Sabrina Setlur', 'Samy Deluxe', 'Sanito', 'Sebastian Fitzek', 'Shirin David', 'Summer Cem', 'T-Low', 'Ufo361', 'YBRE', 'YFG Pave']
|