Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -497,12 +497,12 @@ async def on_message(message):
|
|
497 |
f.write(f"GPT4 Correct Assistant: {output}<|end_of_turn|>")
|
498 |
wds = output.split()
|
499 |
for i in range(len(wds)):
|
|
|
|
|
500 |
embed = discord.Embed(title=title,
|
501 |
description=" ".join(wds)[:i + 1].replace(
|
502 |
f"<|title|>{title}<|title|>", "").replace(f"<|image|>{imgp}<|image|>", ""),
|
503 |
color=0x1E81B0)
|
504 |
-
title = ec(" ".join(wds)[:i], "<|title|>", "<|title|>")[0]
|
505 |
-
imgp = ec(" ".join(wds)[:i])[0]
|
506 |
if imgp != "":
|
507 |
embed.set_image(url=load)
|
508 |
embed.set_footer(
|
|
|
497 |
f.write(f"GPT4 Correct Assistant: {output}<|end_of_turn|>")
|
498 |
wds = output.split()
|
499 |
for i in range(len(wds)):
|
500 |
+
title = ec(" ".join(wds)[:i], "<|title|>", "<|title|>")[0]
|
501 |
+
imgp = ec(" ".join(wds)[:i])[0]
|
502 |
embed = discord.Embed(title=title,
|
503 |
description=" ".join(wds)[:i + 1].replace(
|
504 |
f"<|title|>{title}<|title|>", "").replace(f"<|image|>{imgp}<|image|>", ""),
|
505 |
color=0x1E81B0)
|
|
|
|
|
506 |
if imgp != "":
|
507 |
embed.set_image(url=load)
|
508 |
embed.set_footer(
|