[dfif][sketch] removed all variables related to 'sketch'
Browse files
app.py
CHANGED
@@ -178,9 +178,9 @@ async def sketch(ctx):
|
|
178 |
if ctx.message.attachments:
|
179 |
await thread.send(f'{ctx.author.mention}Generating images in thread, can take ~1 minute...')
|
180 |
attachment = ctx.message.attachments[0]
|
181 |
-
style = 'sketch'
|
182 |
-
im = await asyncio.get_running_loop().run_in_executor(None, jojogan.predict, attachment.url,
|
183 |
-
await thread.send(f'{ctx.author.mention}Here is the
|
184 |
await ctx.message.add_reaction('β
') # img + face
|
185 |
else: # no image
|
186 |
await thread.send(f"{ctx.author.mention}No attachments to be found...Can't animify dat! Try sending me an image π")
|
|
|
178 |
if ctx.message.attachments:
|
179 |
await thread.send(f'{ctx.author.mention}Generating images in thread, can take ~1 minute...')
|
180 |
attachment = ctx.message.attachments[0]
|
181 |
+
#style = 'sketch'
|
182 |
+
im = await asyncio.get_running_loop().run_in_executor(None, jojogan.predict, attachment.url, 'sketch')
|
183 |
+
await thread.send(f'{ctx.author.mention}Here is the sketch version of it', file=discord.File(im))
|
184 |
await ctx.message.add_reaction('β
') # img + face
|
185 |
else: # no image
|
186 |
await thread.send(f"{ctx.author.mention}No attachments to be found...Can't animify dat! Try sending me an image π")
|