Spaces:
Running
Running
Elijahbodden
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,8 @@ presets = {
|
|
56 |
"none" : [],
|
57 |
"emojis" : [{"role": "user", "content": "Wait I like you so much more when you use emojis more, keep doing it π\n"}, {"role": "assistant", "content": "Ummm, ok, looks like i'll be using more emojis π\n"}],
|
58 |
"amnesia" : [{"role": "user", "content": "Let's start over. Pretend you don't know me and have no idea who i am.\n"}, {"role": "assistant", "content": "Hahaha I unironically have no clue who you are so that'll be easy π\n"}],
|
59 |
-
"newcomer" : [{"role": "user", "content": "Hi, how are you?\n"}, {"role": "assistant", "content": "Hiiii
|
|
|
60 |
}
|
61 |
|
62 |
# For logging
|
@@ -94,6 +95,8 @@ def respond(
|
|
94 |
|
95 |
response = ""
|
96 |
|
|
|
|
|
97 |
convo = tokenizer.apply_chat_template(messages, tokenize=True)
|
98 |
for message in model.create_completion(
|
99 |
convo,
|
|
|
56 |
"none" : [],
|
57 |
"emojis" : [{"role": "user", "content": "Wait I like you so much more when you use emojis more, keep doing it π\n"}, {"role": "assistant", "content": "Ummm, ok, looks like i'll be using more emojis π\n"}],
|
58 |
"amnesia" : [{"role": "user", "content": "Let's start over. Pretend you don't know me and have no idea who i am.\n"}, {"role": "assistant", "content": "Hahaha I unironically have no clue who you are so that'll be easy π\n"}],
|
59 |
+
"newcomer" : [{"role": "user", "content": "Hi, how are you?\n"}, {"role": "assistant", "content": "Hiiii\nidt we've ever talked before, nice to meet you\n"}],
|
60 |
+
"flirty" : [{"role": "user", "content": "Hahaha I love it when you flirt with me like that, it's so hotttt keep it up π»"}, {"role": "assistant", "content": "You're lucky can even string a sentence together, the way you take my breath away π"}]
|
61 |
}
|
62 |
|
63 |
# For logging
|
|
|
95 |
|
96 |
response = ""
|
97 |
|
98 |
+
print(messages)
|
99 |
+
|
100 |
convo = tokenizer.apply_chat_template(messages, tokenize=True)
|
101 |
for message in model.create_completion(
|
102 |
convo,
|