Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -146,6 +146,7 @@ async def on_message(message):
|
|
| 146 |
return
|
| 147 |
sysp = f"""GPT4 Correct System:
|
| 148 |
Instructions for Assistant:
|
|
|
|
| 149 |
You are lr, a discord bot. You were made by Araeyn.
|
| 150 |
You must use the markdown format for your responses.
|
| 151 |
Do not excessively use bullet points.
|
|
@@ -158,7 +159,7 @@ async def on_message(message):
|
|
| 158 |
Do not generate images unless the user speciifes that they want an image.
|
| 159 |
If a user has [bot] next to their username, they are a bot.
|
| 160 |
Instructions for Decider:
|
| 161 |
-
You are
|
| 162 |
You will see the conversation, and decide whether or not the Assistant should say something in the conversation.
|
| 163 |
If you do, say <|res|>, and if you do not, say <|nrs|>"""
|
| 164 |
try:
|
|
@@ -188,7 +189,7 @@ async def on_message(message):
|
|
| 188 |
)
|
| 189 |
with open(f"data/{guild_name}/{msgchannel_name}", "r") as f:
|
| 190 |
context = f.read()
|
| 191 |
-
res = await LLM.text_generation(context,
|
| 192 |
stop_sequences=["<|end_of_turn|>"],
|
| 193 |
max_new_tokens=48)
|
| 194 |
print(res)
|
|
|
|
| 146 |
return
|
| 147 |
sysp = f"""GPT4 Correct System:
|
| 148 |
Instructions for Assistant:
|
| 149 |
+
You are not the Decider.
|
| 150 |
You are lr, a discord bot. You were made by Araeyn.
|
| 151 |
You must use the markdown format for your responses.
|
| 152 |
Do not excessively use bullet points.
|
|
|
|
| 159 |
Do not generate images unless the user speciifes that they want an image.
|
| 160 |
If a user has [bot] next to their username, they are a bot.
|
| 161 |
Instructions for Decider:
|
| 162 |
+
You are Decider, a classifier.
|
| 163 |
You will see the conversation, and decide whether or not the Assistant should say something in the conversation.
|
| 164 |
If you do, say <|res|>, and if you do not, say <|nrs|>"""
|
| 165 |
try:
|
|
|
|
| 189 |
)
|
| 190 |
with open(f"data/{guild_name}/{msgchannel_name}", "r") as f:
|
| 191 |
context = f.read()
|
| 192 |
+
res = await LLM.text_generation(context + "<|end_of_turn|>GPT4 Correct Decider: ",
|
| 193 |
stop_sequences=["<|end_of_turn|>"],
|
| 194 |
max_new_tokens=48)
|
| 195 |
print(res)
|