Araeynn commited on
Commit
193c127
1 Parent(s): 6891eca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -522,8 +522,8 @@ async def on_message(message):
522
  image, m = (await PT.text_to_image(imgp, negative_prompt=np), "Proteus v0.2")
523
  else:
524
  raise NotImplementedError(f"Model {imageModel} not found. Report this to @araeyn if this keeps happening.")
525
- image.save("image.png")
526
- file = discord.File(f"{imgn}.png", filename="image.png", description=imgp)
527
  embed.set_image(url=f"attachment://{imgn}.png")
528
  embed.set_footer(
529
  text=
@@ -537,8 +537,8 @@ async def on_message(message):
537
  text=
538
  f"Image generation model is {m}. Refiner model is {r}. Took {round((gt - st) * 10) / 10} seconds to generate. Took {round((rt - gt) * 10) / 10} seconds to refine."
539
  )
540
- image.save("image.png")
541
- file = discord.File(f"{imgn}.png", filename="image.png")
542
  embed.set_image(url=f"attachment://{imgn}.png")
543
  await e.edit(embed=embed, attachments=[file])
544
  except Exception as exc:
 
522
  image, m = (await PT.text_to_image(imgp, negative_prompt=np), "Proteus v0.2")
523
  else:
524
  raise NotImplementedError(f"Model {imageModel} not found. Report this to @araeyn if this keeps happening.")
525
+ image.save(f"{imgn}.png")
526
+ file = discord.File(f"{imgn}.png", filename=f"{imgn}.png", description=imgp)
527
  embed.set_image(url=f"attachment://{imgn}.png")
528
  embed.set_footer(
529
  text=
 
537
  text=
538
  f"Image generation model is {m}. Refiner model is {r}. Took {round((gt - st) * 10) / 10} seconds to generate. Took {round((rt - gt) * 10) / 10} seconds to refine."
539
  )
540
+ image.save(f"{imgn}.png")
541
+ file = discord.File(f"{imgn}.png", filename=f"{imgn}.png")
542
  embed.set_image(url=f"attachment://{imgn}.png")
543
  await e.edit(embed=embed, attachments=[file])
544
  except Exception as exc: