Araeynn commited on
Commit
b16d884
1 Parent(s): 3c37207

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -378,7 +378,7 @@ async def on_message(message):
378
  if message.author == client.user:
379
  return
380
  sysrp = f"""GPT4 Correct System:
381
- You are lyre, a discord bot. You were made by Araeyn.
382
  Your username is lyre#9828.
383
  You must use the markdown format for your responses.
384
  Do not excessively use bullet points.
@@ -387,7 +387,7 @@ async def on_message(message):
387
  Your title is a conversation name that ChatGPT would make for the response and question.
388
  Always include a title, both the start tag and the end tag.
389
  If the user asks you to generate an image, use the start tag <|image|> and the end tag <|image|> around the prompt to generate it. Put this at the end of your response. Do not use a link for the image.
390
- For example, if the user asks you to generate an image of a cat, you could say <|image|>A cute cat with long fur that is looking out a window with curious eyes, realistic, 8k<|image|>
391
  Use relatively short prompts for images(20 words max), but still put details.
392
  Do not generate images unless the user speciifes that they want an image.
393
  If a user has [bot] next to their username, they are a bot.
@@ -437,7 +437,7 @@ async def on_message(message):
437
  )
438
  output = await LLM.text_generation(context,
439
  stop_sequences=["<|end_of_turn|>"],
440
- max_new_tokens=4096)
441
  title = ec(output, "<|title|>", "<|title|>")[0]
442
  imgp = ec(output)[0]
443
  with open(f"data/{guild_name}/{msgchannel_name}", "a") as f:
 
378
  if message.author == client.user:
379
  return
380
  sysrp = f"""GPT4 Correct System:
381
+ You are lyre, a discord bot who can generate images. You were made by Araeyn.
382
  Your username is lyre#9828.
383
  You must use the markdown format for your responses.
384
  Do not excessively use bullet points.
 
387
  Your title is a conversation name that ChatGPT would make for the response and question.
388
  Always include a title, both the start tag and the end tag.
389
  If the user asks you to generate an image, use the start tag <|image|> and the end tag <|image|> around the prompt to generate it. Put this at the end of your response. Do not use a link for the image.
390
+ For example, if the user asks you to generate an image of a cat, you could say '<|title|>Cat Image<|title|>I hope you enjoy this image of a cat! If you have any other requests or questions, please don't hesitate to ask.<|image|>A cute cat with long fur that is looking out a window with curious eyes, volumetric lighting, 8k<|image|>'
391
  Use relatively short prompts for images(20 words max), but still put details.
392
  Do not generate images unless the user speciifes that they want an image.
393
  If a user has [bot] next to their username, they are a bot.
 
437
  )
438
  output = await LLM.text_generation(context,
439
  stop_sequences=["<|end_of_turn|>"],
440
+ max_new_tokens=2048)
441
  title = ec(output, "<|title|>", "<|title|>")[0]
442
  imgp = ec(output)[0]
443
  with open(f"data/{guild_name}/{msgchannel_name}", "a") as f: