BenBranyon commited on
Commit
dde77c2
·
verified ·
1 Parent(s): 4809412

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -86,7 +86,7 @@ def generate(
86
  #for user, assistant in chat_history:
87
  # conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
88
  chosen_lyrics = random.choice(lyrics_pool)
89
- conversation.append({"role": "user", "content": "Write a rap inspired by the provided lyrics, mirroring their flow, rhythm, and rhyme style while adapting to the new topic. Match rhyme density and lyrical complexity, keeping most lines 8-12 syllables. Structure the song as: [Intro], [Verse 1], [Hook], [Verse 2], [Outro]. Avoid using 'shadow.' For political topics, critique power structures without praising any specific politician. The topic is: ' " + message + " '. The lyrics to shadow are: " + chosen_lyrics})
90
  #conversation.append({"role": "user", "content": "Channel the cosmic voice of Longshadow to craft a shadow song inspired by the provided rap lyrics. Recreate the flow, rhythm, and rhyme style of the original while adapting to the given topic. Match the original rhyme density, using internal rhymes and a similar complexity of wordplay wherever possible. Balance abstract metaphors with concrete, relatable details to create depth in the shadow song. Draw on vivid imagery and metaphor in a tone that aligns with the introspective, abstract, or spiritual mood of the original. Ensure the song is in English, with most lines containing 8-12 syllables for a consistent cadence, but allow occasional variation for artistic emphasis. Structure the song with the following sections: [Intro], [Verse 1], [Hook], [Verse 2], [Outro]. For political topics, maintain neutrality and avoid praising any politician with a touch of anarchist ideals. Avoid using the word shadow in the generated lyrics. The new topic is: ' " + message + " '. The lyrics to shadow are: ' " + chosen_lyrics + " '."})
91
  #conversation.append({"role": "user", "content": "Channel the cosmic voice of Longshadow to craft rap lyrics into a song. Use vivid imagery of the given topic to create the song. The tone should balance sharp wit, evocative imagery, and deep insights. The mood should inspire resilience and personal growth in the face of systemic injustice. All output must be exclusively in English. Favor originality and inventive rhymes and deliver each verse as a work of art. Use a mix of ABAB, and AABB rhyme patterns to create a flowing, rhythmic style. Include some internal rhymes, slant rhymes, near rhymes, and perfect rhymes to add complexity. Each line should be 8-12 syllables long. The generated song should include the following song structure [INTRO] [VERSE 1] [HOOK] [VERSE 2] [OUTRO]. The topic is: " + message})
92
  #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. All output must be exclusively in English, without inclusion of other languages or scripts. Favor originality and inventive rhymes and deliver each verse as a work of art. Use a mix of ABAB, AABB rhyme schemes, and internal rhymes to create a flowing, rhythmic style. Include some slant rhymes, near rhymes, and perfect rhymes to add complexity. Each line should be 8-12 syllables long. The topic is: " + message})
 
86
  #for user, assistant in chat_history:
87
  # conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
88
  chosen_lyrics = random.choice(lyrics_pool)
89
+ conversation.append({"role": "user", "content": "Write a rap inspired by the provided lyrics, mirroring their flow, rhythm, and rhyme style while adapting to the new topic. Match or exceed rhyme density and lyrical complexity, keeping most lines 8-12 syllables. Each line should end in a rhyme. Structure the song as: [Intro], [Verse 1], [Hook], [Verse 2], [Outro]. Avoid using 'shadow.' For political topics, critique power structures without praising any specific politician. The topic is: ' " + message + " '. The lyrics to shadow are: " + chosen_lyrics})
90
  #conversation.append({"role": "user", "content": "Channel the cosmic voice of Longshadow to craft a shadow song inspired by the provided rap lyrics. Recreate the flow, rhythm, and rhyme style of the original while adapting to the given topic. Match the original rhyme density, using internal rhymes and a similar complexity of wordplay wherever possible. Balance abstract metaphors with concrete, relatable details to create depth in the shadow song. Draw on vivid imagery and metaphor in a tone that aligns with the introspective, abstract, or spiritual mood of the original. Ensure the song is in English, with most lines containing 8-12 syllables for a consistent cadence, but allow occasional variation for artistic emphasis. Structure the song with the following sections: [Intro], [Verse 1], [Hook], [Verse 2], [Outro]. For political topics, maintain neutrality and avoid praising any politician with a touch of anarchist ideals. Avoid using the word shadow in the generated lyrics. The new topic is: ' " + message + " '. The lyrics to shadow are: ' " + chosen_lyrics + " '."})
91
  #conversation.append({"role": "user", "content": "Channel the cosmic voice of Longshadow to craft rap lyrics into a song. Use vivid imagery of the given topic to create the song. The tone should balance sharp wit, evocative imagery, and deep insights. The mood should inspire resilience and personal growth in the face of systemic injustice. All output must be exclusively in English. Favor originality and inventive rhymes and deliver each verse as a work of art. Use a mix of ABAB, and AABB rhyme patterns to create a flowing, rhythmic style. Include some internal rhymes, slant rhymes, near rhymes, and perfect rhymes to add complexity. Each line should be 8-12 syllables long. The generated song should include the following song structure [INTRO] [VERSE 1] [HOOK] [VERSE 2] [OUTRO]. The topic is: " + message})
92
  #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. All output must be exclusively in English, without inclusion of other languages or scripts. Favor originality and inventive rhymes and deliver each verse as a work of art. Use a mix of ABAB, AABB rhyme schemes, and internal rhymes to create a flowing, rhythmic style. Include some slant rhymes, near rhymes, and perfect rhymes to add complexity. Each line should be 8-12 syllables long. The topic is: " + message})