lunarflu HF Staff commited on
Commit
936985f
·
1 Parent(s): 4a799bf

[dfif] elif not png_files: await thread.send('png files are empty.')

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -440,6 +440,8 @@ async def deepfloydif(ctx, *, prompt: str):
440
  with open(combined_image_path, 'rb') as f:
441
  combined_image_dfif = await thread.send(f'{ctx.author.mention}React with the image number you want to upscale!', file=discord.File(
442
  f, f'{partialpath}{dfif_command_message_id}.png')) # named something like: tmpgtv4qjix1111269940599738479.png
 
 
443
 
444
  await thread.send(f'✅reacting with 1234...')
445
  emoji_list = ['↖️', '↗️', '↙️', '↘️']
 
440
  with open(combined_image_path, 'rb') as f:
441
  combined_image_dfif = await thread.send(f'{ctx.author.mention}React with the image number you want to upscale!', file=discord.File(
442
  f, f'{partialpath}{dfif_command_message_id}.png')) # named something like: tmpgtv4qjix1111269940599738479.png
443
+ elif not png_files:
444
+ await thread.send('png files are empty.')
445
 
446
  await thread.send(f'✅reacting with 1234...')
447
  emoji_list = ['↖️', '↗️', '↙️', '↘️']