Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -408,8 +408,8 @@ async def on_message(message):
|
|
| 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, num_inference_steps=8), "stable-diffusion-xl-base-1.0")
|
| 411 |
-
|
| 412 |
-
image, m = (await SDT.text_to_image(imgp, negative_prompt=np, num_inference_steps=1, guidance_scale=0.00), "sd-turbo")
|
| 413 |
# image, m = (await PT.text_to_image(imgp, negative_prompt=np), "Proteus v0.2")
|
| 414 |
image.save("image.png")
|
| 415 |
file = discord.File("image.png", filename="image.png", description=imgp)
|
|
@@ -420,7 +420,7 @@ async def on_message(message):
|
|
| 420 |
)
|
| 421 |
await e.edit(embed=embed, attachments=[file])
|
| 422 |
gt = time.time()
|
| 423 |
-
image, r = (await RF.image_to_image("image.png", num_inference_steps=
|
| 424 |
rt = time.time()
|
| 425 |
embed.set_footer(
|
| 426 |
text=
|
|
|
|
| 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, num_inference_steps=8), "stable-diffusion-xl-base-1.0")
|
| 411 |
+
image, m = (await SDXLT.text_to_image(imgp, negative_prompt=np, num_inference_steps=1, guidance_scale=0.00), "sdxl-turbo")
|
| 412 |
+
# image, m = (await SDT.text_to_image(imgp, negative_prompt=np, num_inference_steps=1, guidance_scale=0.00), "sd-turbo")
|
| 413 |
# image, m = (await PT.text_to_image(imgp, negative_prompt=np), "Proteus v0.2")
|
| 414 |
image.save("image.png")
|
| 415 |
file = discord.File("image.png", filename="image.png", description=imgp)
|
|
|
|
| 420 |
)
|
| 421 |
await e.edit(embed=embed, attachments=[file])
|
| 422 |
gt = time.time()
|
| 423 |
+
image, r = (await RF.image_to_image("image.png", num_inference_steps=8), "stable-diffusion-xl-refiner-1.0")
|
| 424 |
rt = time.time()
|
| 425 |
embed.set_footer(
|
| 426 |
text=
|