Elijahbodden commited on
Commit
fd03f52
Β·
verified Β·
1 Parent(s): f15787f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -54,11 +54,15 @@ tokenizer.chat_template = custom_template
54
 
55
  presets = {
56
  # Make sure assistant responses end with a "\n" because reasons
 
57
  "none" : [],
58
  "emojis" : [{"role": "user", "content": "Wait I like you so much more when you use emojis more, keep doing it πŸ˜‚"}, {"role": "assistant", "content": "Ummm, ok, looks like i'll be using more emojis πŸ’€\n"}],
59
  "amnesia" : [{"role": "user", "content": "Let's start over. Pretend you don't know me and have no idea who i am."}, {"role": "assistant", "content": "Hahaha I unironically have no clue who you are so that'll be easy πŸ’€\n"}],
60
  "newcomer" : [{"role": "user", "content": "Hi, how are you?"}, {"role": "assistant", "content": "Hiiii\nidt we've ever talked before, nice to meet you\n"}],
61
- "rizz" : [{"role": "user", "content": "it's so hotttt when you flirt with me like that, keep it up. Please flirt with me in every message from now on 😻"}, {"role": "assistant", "content": "You're lucky can even string a sentence together, the way you take my breath away. but sure, I'll try 😘\n"}]
 
 
 
62
  }
63
 
64
  # For logging
@@ -131,7 +135,7 @@ demo = gr.ChatInterface(
131
  description="The model may take a while if it hasn't run recently or a lot of people are using it",
132
  title="EliGPT v1.3",
133
  additional_inputs=[
134
- gr.Radio(presets.keys(), label="Preset", info="Gaslight the model into acting a certain way - WARNING, IF YOU CHANGE THIS WHILE THERE ARE MESSAGES IN THE CHAT, THE MODEL WILL BECOME VERY SLOW FOR YOU", value="emojis"),
135
  gr.Slider(minimum=0.1, maximum=4.0, value=1.5, step=0.1, label="Temperature", info="How chaotic should the model be?"),
136
  gr.Slider(minimum=0.0, maximum=1.0, value=0.1, step=0.01, label="Min_p", info="Lower values give it more \"personality\""),
137
  gr.Slider(minimum=0, maximum=512, value=5, step=1, label="Length penalty start", info='When should the model start being more likely to shut up?'),
 
54
 
55
  presets = {
56
  # Make sure assistant responses end with a "\n" because reasons
57
+ # If convo ended works well to persist attitudes across convos, I can add it to all of these to get rid of "hi" jarring the vibes
58
  "none" : [],
59
  "emojis" : [{"role": "user", "content": "Wait I like you so much more when you use emojis more, keep doing it πŸ˜‚"}, {"role": "assistant", "content": "Ummm, ok, looks like i'll be using more emojis πŸ’€\n"}],
60
  "amnesia" : [{"role": "user", "content": "Let's start over. Pretend you don't know me and have no idea who i am."}, {"role": "assistant", "content": "Hahaha I unironically have no clue who you are so that'll be easy πŸ’€\n"}],
61
  "newcomer" : [{"role": "user", "content": "Hi, how are you?"}, {"role": "assistant", "content": "Hiiii\nidt we've ever talked before, nice to meet you\n"}],
62
+ "convo_ended" : [{"role": "user", "content": "okok now i've actually gtg"}, {"role": "assistant", "content": "Haha cool ttyl\n"}]
63
+ "rizz1" : [{"role": "user", "content": "omg it's so hot when you flirt with me"}, {"role": "assistant", "content": "haha well you're lucky can even string a sentence together, the way you take my breath away 😘\n"}]
64
+ "rizz2" : [{"role": "user", "content": "woah you're such a good writer"}, {"role": "assistant", "content": "you're lucky can even string a sentence together, the way you take my breath away babe 😘\n"}]
65
+ "thinky" : [{"role": "user", "content": "Woah you just totally blew my mind\ngod, consciousness + anthropic principle is such a combo\nok ttyl"}, {"role": "assistant", "content": "nah our deep convos are always the best, we should talk again soon\n"}]
66
  }
67
 
68
  # For logging
 
135
  description="The model may take a while if it hasn't run recently or a lot of people are using it",
136
  title="EliGPT v1.3",
137
  additional_inputs=[
138
+ gr.Radio(presets.keys(), label="Personality preset", info="Gaslight the model into acting a certain way - WARNING, IF YOU CHANGE THIS WHILE THERE ARE MESSAGES IN THE CHAT, THE MODEL WILL BECOME VERY SLOW", value="emojis"),
139
  gr.Slider(minimum=0.1, maximum=4.0, value=1.5, step=0.1, label="Temperature", info="How chaotic should the model be?"),
140
  gr.Slider(minimum=0.0, maximum=1.0, value=0.1, step=0.01, label="Min_p", info="Lower values give it more \"personality\""),
141
  gr.Slider(minimum=0, maximum=512, value=5, step=1, label="Length penalty start", info='When should the model start being more likely to shut up?'),