Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -107,7 +107,7 @@ async def on_message(message):
|
|
107 |
sysp = """You are Lyre, a helpful discord chatbot. Respond in markdown. Your username is lyre#9828."""
|
108 |
try:
|
109 |
os.mkdir("data/" + guild_name)
|
110 |
-
with open(f"{guild_name}/{msgchannel_name}", "w") as f:
|
111 |
f.write(
|
112 |
f"GPT4 Correct system: {sysp}\nGPT4 Correct {message.author}: {message.content}"
|
113 |
)
|
@@ -127,7 +127,7 @@ async def on_message(message):
|
|
127 |
output = LLM.text_generation(context,
|
128 |
stop_sequences=[""],
|
129 |
max_new_tokens=4096)
|
130 |
-
with open(f"{guild_name}/{msgchannel_name}", "a") as f:
|
131 |
f.write(f"GPT4 Correct Assistant: {output}")
|
132 |
words = output.split()
|
133 |
embed = discord.Embed(title=title,
|
|
|
107 |
sysp = """You are Lyre, a helpful discord chatbot. Respond in markdown. Your username is lyre#9828."""
|
108 |
try:
|
109 |
os.mkdir("data/" + guild_name)
|
110 |
+
with open(f"data/{guild_name}/{msgchannel_name}", "w") as f:
|
111 |
f.write(
|
112 |
f"GPT4 Correct system: {sysp}\nGPT4 Correct {message.author}: {message.content}"
|
113 |
)
|
|
|
127 |
output = LLM.text_generation(context,
|
128 |
stop_sequences=[""],
|
129 |
max_new_tokens=4096)
|
130 |
+
with open(f"data/{guild_name}/{msgchannel_name}", "a") as f:
|
131 |
f.write(f"GPT4 Correct Assistant: {output}")
|
132 |
words = output.split()
|
133 |
embed = discord.Embed(title=title,
|