Araeynn commited on
Commit
80ed9ef
·
verified ·
1 Parent(s): 0a397b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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,