lunarflu HF Staff commited on
Commit
f87b648
Β·
1 Parent(s): ab54bd2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -83,6 +83,7 @@ async def generation(ctx, attachment, start_time):
83
  im = await asyncio.get_running_loop().run_in_executor(None, jojogan.predict, attachment.url, style)
84
  semaphore.release()
85
  except Exception as e:
 
86
  semaphore.release()
87
  raise e
88
  #im = await asyncio.to_thread(jojogan.predict, attachment.url, style)
@@ -101,7 +102,8 @@ async def generation(ctx, attachment, start_time):
101
  asyncio.sleep(0.5),
102
  ctx.message.remove_reaction('βŒ›', bot.user),
103
  asyncio.sleep(0.5),
104
- ctx.message.add_reaction('βœ…')
 
105
  )
106
 
107
 
 
83
  im = await asyncio.get_running_loop().run_in_executor(None, jojogan.predict, attachment.url, style)
84
  semaphore.release()
85
  except Exception as e:
86
+ print('semaphore error')
87
  semaphore.release()
88
  raise e
89
  #im = await asyncio.to_thread(jojogan.predict, attachment.url, style)
 
102
  asyncio.sleep(0.5),
103
  ctx.message.remove_reaction('βŒ›', bot.user),
104
  asyncio.sleep(0.5),
105
+ ctx.message.add_reaction('βœ…'),
106
+ asyncio.sleep(0.5)
107
  )
108
 
109