Araeynn commited on
Commit
61cacf9
1 Parent(s): d7aac2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -11
app.py CHANGED
@@ -406,18 +406,10 @@ async def on_message(message):
406
  if imgp != "":
407
  np = """lowres, text, error, cropped, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, out of frame, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, username, watermark, signature"""
408
  st = time.time()
409
- image, m = (await SD.text_to_image(imgp, negative_prompt=np), "Stable Diffusion 2-1")
410
- # image, m = (await SDXL.text_to_image(imgp, negative_prompt=np), "stable-diffusion-xl-base-1.0")
 
411
  image.save("image.png")
412
- """file = discord.File("image.png", filename="image.png", description=imgp)
413
- embed.set_image(url="attachment://image.png")
414
- embed.set_footer(
415
- text=
416
- '''Upscaling...'''
417
- )
418
- await e.edit(embed=embed, attachments=[file])
419
- image = await UP.image_to_image("image.png")
420
- image.save("image.png")"""
421
  file = discord.File("image.png", filename="image.png", description=imgp)
422
  embed.set_image(url="attachment://image.png")
423
  embed.set_footer(
 
406
  if imgp != "":
407
  np = """lowres, text, error, cropped, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, out of frame, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, username, watermark, signature"""
408
  st = time.time()
409
+ # image, m = (await SD.text_to_image(imgp, negative_prompt=np, guidance), "Stable Diffusion 2-1")
410
+ image, m = (await SDXL.text_to_image(imgp, negative_prompt=np), "stable-diffusion-xl-base-1.0")
411
+ # image, m = (await PT.text_to_image(imgp, negative_prompt=np), "Proteus v0.2")
412
  image.save("image.png")
 
 
 
 
 
 
 
 
 
413
  file = discord.File("image.png", filename="image.png", description=imgp)
414
  embed.set_image(url="attachment://image.png")
415
  embed.set_footer(