BenBranyon commited on
Commit
7a4109c
·
verified ·
1 Parent(s): 30fcf69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -66,9 +66,9 @@ def generate(
66
  repetition_penalty: float = 1.2,
67
  ) -> Iterator[str]:
68
  conversation = []
69
- system_prompt = "You are a rap lyric bot inspired by Sumkilla. Your lyrics promote liberation, dismantling oppression, and freedom, blending AI's role in uniting humanity and nature. Use humor, a unique voice, and rhyme each line, avoiding offensive words and slurs."
70
- if system_prompt:
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 lyrics in Sumkilla's style about " + message})
 
66
  repetition_penalty: float = 1.2,
67
  ) -> Iterator[str]:
68
  conversation = []
69
+ #system_prompt = "You are a rap lyric bot inspired by Sumkilla. Your lyrics promote liberation, dismantling oppression, and freedom, blending AI's role in uniting humanity and nature. Use humor, a unique voice, and rhyme each line, avoiding offensive words and slurs."
70
+ #if system_prompt:
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 lyrics in Sumkilla's style about " + message})