Update app.py
Browse files
app.py
CHANGED
|
@@ -78,9 +78,7 @@ async def generation(ctx, attachment, start_time):
|
|
| 78 |
if attachment:
|
| 79 |
style = 'JoJo'
|
| 80 |
|
| 81 |
-
|
| 82 |
-
im = loop.run_in_executor(None, jojogan.predict, attachment.url, style)
|
| 83 |
-
#im = await asyncio.get_running_loop().run_in_executor(None, jojogan.predict, attachment.url, style)
|
| 84 |
#semaphore.release()
|
| 85 |
|
| 86 |
#im = await asyncio.to_thread(jojogan.predict, attachment.url, style)
|
|
|
|
| 78 |
if attachment:
|
| 79 |
style = 'JoJo'
|
| 80 |
|
| 81 |
+
im = await asyncio.get_running_loop().run_in_executor(None, jojogan.predict, attachment.url, style)
|
|
|
|
|
|
|
| 82 |
#semaphore.release()
|
| 83 |
|
| 84 |
#im = await asyncio.to_thread(jojogan.predict, attachment.url, style)
|