Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ def generate(
|
|
72 |
conversation.append({"role": "system", "content": system_prompt})
|
73 |
#for user, assistant in chat_history:
|
74 |
# conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
|
75 |
-
conversation.append({"role": "user", "content": "
|
76 |
|
77 |
input_ids = tokenizer.apply_chat_template(conversation, return_tensors="pt")
|
78 |
if input_ids.shape[1] > MAX_INPUT_TOKEN_LENGTH:
|
|
|
72 |
conversation.append({"role": "system", "content": system_prompt})
|
73 |
#for user, assistant in chat_history:
|
74 |
# conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
|
75 |
+
conversation.append({"role": "user", "content": "Channel the cosmic voice of Longshadow to craft rap lyrics that blend mysticism, grit, and cultural critique. Draw on ancestral wisdom, surreal imagery, and cosmic energy to create a verse that critiques systemic oppression, inspires resilience, and celebrates liberation. The tone should balance sharp wit, evocative imagery, and spiritual insight, culminating in a coherent and impactful thought. Avoid clichés like rhyming 'lyrical' with 'miracle,' and deliver each verse as a work of art. The topic is: " + message})
|
76 |
|
77 |
input_ids = tokenizer.apply_chat_template(conversation, return_tensors="pt")
|
78 |
if input_ids.shape[1] > MAX_INPUT_TOKEN_LENGTH:
|