Araeynn commited on
Commit
1a7f330
·
verified ·
1 Parent(s): d6c6f78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -496,9 +496,9 @@ async def on_message(message):
496
  with open(f"data/{guild_name}/{msgchannel_name}", "a") as f:
497
  f.write(f"GPT4 Correct Assistant: {output}<|end_of_turn|>")
498
  wds = output.split()
499
- for i in range(wds):
500
  embed = discord.Embed(title=title,
501
- description=" ".join(wds)[:i].replace(
502
  f"<|title|>{title}<|title|>", "").replace(f"<|image|>{imgp}<|image|>", ""),
503
  color=0x1E81B0)
504
  title = ec(" ".join(wds)[:i], "<|title|>", "<|title|>")[0]
 
496
  with open(f"data/{guild_name}/{msgchannel_name}", "a") as f:
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]