Update app.py
Browse files
app.py
CHANGED
@@ -72,7 +72,6 @@ def wuerstchen_inference(prompt):
|
|
72 |
async def run_wuerstchen(ctx, prompt):
|
73 |
"""Responds to /Wuerstchen command"""
|
74 |
try:
|
75 |
-
channel = bot.get_channel(WUERSTCHEN_CHANNEL_ID)
|
76 |
message = await ctx.send(f"**{prompt}** - {ctx.author.mention} <a:loading:1114111677990981692>")
|
77 |
|
78 |
loop = asyncio.get_running_loop()
|
@@ -80,7 +79,7 @@ async def run_wuerstchen(ctx, prompt):
|
|
80 |
|
81 |
await message.delete()
|
82 |
with open(result_path, "rb") as f:
|
83 |
-
await channel.send(f"**{prompt}** - {ctx.author.mention}", file=discord.File(f, "wuerstchen.png"))
|
84 |
except Exception as e:
|
85 |
print(f"Error: {e}")
|
86 |
|
|
|
72 |
async def run_wuerstchen(ctx, prompt):
|
73 |
"""Responds to /Wuerstchen command"""
|
74 |
try:
|
|
|
75 |
message = await ctx.send(f"**{prompt}** - {ctx.author.mention} <a:loading:1114111677990981692>")
|
76 |
|
77 |
loop = asyncio.get_running_loop()
|
|
|
79 |
|
80 |
await message.delete()
|
81 |
with open(result_path, "rb") as f:
|
82 |
+
await ctx.channel.send(f"**{prompt}** - {ctx.author.mention}", file=discord.File(f, "wuerstchen.png"))
|
83 |
except Exception as e:
|
84 |
print(f"Error: {e}")
|
85 |
|