lunarflu commited on
Commit ·
f87b648
1
Parent(s): ab54bd2
Update app.py
Browse files
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 |
|