Araeynn commited on
Commit
2bd7860
1 Parent(s): 3b65680

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -233,7 +233,7 @@ async def on_message(message:discord.Message):
233
  text=
234
  """Refining..."""
235
  )
236
- await e.edit(embed=embed, attachments=[file])
237
  gt = time.time()
238
  image, r = (await RF.image_to_image(f"{imgn}.png", num_inference_steps=35, prompt=imgp, negative_prompt=np), "stable-diffusion-xl-refiner-1.0")
239
  rt = time.time()
@@ -244,7 +244,7 @@ async def on_message(message:discord.Message):
244
  image.save(f"{imgn}.png")
245
  file = discord.File(f"{imgn}.png", filename=f"{imgn}.png")
246
  embed.set_image(url=f"attachment://{imgn}.png")
247
- await e.edit(embed=embed, attachments=[file])
248
 
249
  @bot.command(description="Start a chatbot conversation in the channel.")
250
  async def setup(ctx:discord.ApplicationContext):
 
233
  text=
234
  """Refining..."""
235
  )
236
+ await e.edit(embed=embed, attachment=file)
237
  gt = time.time()
238
  image, r = (await RF.image_to_image(f"{imgn}.png", num_inference_steps=35, prompt=imgp, negative_prompt=np), "stable-diffusion-xl-refiner-1.0")
239
  rt = time.time()
 
244
  image.save(f"{imgn}.png")
245
  file = discord.File(f"{imgn}.png", filename=f"{imgn}.png")
246
  embed.set_image(url=f"attachment://{imgn}.png")
247
+ await e.edit(embed=embed, attachment=file)
248
 
249
  @bot.command(description="Start a chatbot conversation in the channel.")
250
  async def setup(ctx:discord.ApplicationContext):