Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ def generate(
|
|
71 |
conversation.append({"role": "system", "content": system_prompt})
|
72 |
for user, assistant in chat_history:
|
73 |
conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
|
74 |
-
conversation.append({"role": "user", "content": "Generate rap lyircs about " + message + " using a similar style as the artist Sumkilla. Use humor, a unique voice, and rhyme as much as poosible, avoiding offensive words and slurs. Only print song lyircs. Don't repeate your instructions in the output."})
|
75 |
|
76 |
input_ids = tokenizer.apply_chat_template(conversation, return_tensors="pt")
|
77 |
if input_ids.shape[1] > MAX_INPUT_TOKEN_LENGTH:
|
|
|
71 |
conversation.append({"role": "system", "content": system_prompt})
|
72 |
for user, assistant in chat_history:
|
73 |
conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
|
74 |
+
conversation.append({"role": "user", "content": "Generate rap lyircs about " + message + " using a similar style as the artist Sumkilla. Use humor, a unique voice, and rhyme as much as poosible, avoiding offensive words and slurs. Only print song lyircs and start each output with a song stucture like [VERSE 1]. Don't repeate your instructions in the output."})
|
75 |
|
76 |
input_ids = tokenizer.apply_chat_template(conversation, return_tensors="pt")
|
77 |
if input_ids.shape[1] > MAX_INPUT_TOKEN_LENGTH:
|