BenBranyon commited on
Commit
852119f
·
verified ·
1 Parent(s): 5db3a70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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": "Generate rap lyircs using the style of the artist Sumkilla about " + message + ". Make each line 10-16 syllables and each pair of lines should end with a word that rhymes. Start the output with a song stucture like [VERSE 1]."})
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: