lunarflu HF Staff commited on
Commit
602130d
·
1 Parent(s): 0e6b97a

if attachment:

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ async def discord_before(ctx):
46
  return False
47
 
48
  async def generation(attachment):
49
- if attachment not False:
50
  style = 'JoJo'
51
  im = jojogan.predict(attachment.url, style)
52
  return im
 
46
  return False
47
 
48
  async def generation(attachment):
49
+ if attachment:
50
  style = 'JoJo'
51
  im = jojogan.predict(attachment.url, style)
52
  return im