Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -176,13 +176,14 @@ async def on_message(message:discord.Message):
|
|
176 |
async with msgchannel.typing():
|
177 |
with open(os.path.join(guild_name, f"{msgchannel_name}.txt"), "r") as f:
|
178 |
o = f.read()
|
|
|
|
|
|
|
|
|
179 |
o += "GPT4 Correct Assistant: "
|
180 |
y = query({"inputs": o})
|
181 |
r = y[0]["generated_text"][len(o):]
|
182 |
title = extract_content(r, first_delimiter="<title>", second_delimiter="</title>")[0]
|
183 |
-
embed = discord.Embed(title=title, description= r.replace("<title>" + title + "</title>", ""), color=0x1e81b0)
|
184 |
-
embed.set_footer(text="""Information or code generated by LR3 may not always be correct. LR3 was made by Araeyn.""")
|
185 |
-
e = await message.reply(embed=embed)
|
186 |
l = 0
|
187 |
r = ""
|
188 |
while not ("<|end_of_turn|>" in y[0]["generated_text"][
|
|
|
176 |
async with msgchannel.typing():
|
177 |
with open(os.path.join(guild_name, f"{msgchannel_name}.txt"), "r") as f:
|
178 |
o = f.read()
|
179 |
+
title = ""
|
180 |
+
embed = discord.Embed(title=title, description= "...", color=0x1e81b0)
|
181 |
+
embed.set_footer(text="""Information or code generated by Lyre may not always be correct. Lyre was made by Araeyn.""")
|
182 |
+
e = await message.reply(embed=embed)
|
183 |
o += "GPT4 Correct Assistant: "
|
184 |
y = query({"inputs": o})
|
185 |
r = y[0]["generated_text"][len(o):]
|
186 |
title = extract_content(r, first_delimiter="<title>", second_delimiter="</title>")[0]
|
|
|
|
|
|
|
187 |
l = 0
|
188 |
r = ""
|
189 |
while not ("<|end_of_turn|>" in y[0]["generated_text"][
|