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