lunarflu HF Staff commited on
Commit
0a57242
·
1 Parent(s): 75dfc1c
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,10 +31,10 @@ async def generate_jojo_image(ctx, attachment):
31
  start_time = time.time()
32
  style = 'JoJo'
33
  im = jojogan.predict(attachment.url, style)
 
 
34
  await ctx.send(f"Jojo image generated in {generation_time:.2f} seconds.")
35
  await ctx.send(file=discord.File(im))
36
- end_time = time.time()
37
- total_time = end_time - start_time
38
  #---------------------------------------------------------------------------------------------------------------------------
39
  @bot.command()
40
  async def jojo(ctx):
 
31
  start_time = time.time()
32
  style = 'JoJo'
33
  im = jojogan.predict(attachment.url, style)
34
+ end_time = time.time()
35
+ generation_time = end_time - start_time
36
  await ctx.send(f"Jojo image generated in {generation_time:.2f} seconds.")
37
  await ctx.send(file=discord.File(im))
 
 
38
  #---------------------------------------------------------------------------------------------------------------------------
39
  @bot.command()
40
  async def jojo(ctx):