lunarflu HF Staff commited on
Commit
04b6845
·
1 Parent(s): 4c610fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -78,10 +78,10 @@ async def generation(ctx, attachment, start_time):
78
  if attachment:
79
  style = 'JoJo'
80
 
81
- loop = asyncio.get_running_loop()
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)
87
  #im = jojogan.predict(attachment.url, style)
 
78
  if attachment:
79
  style = 'JoJo'
80
 
81
+ loop = asyncio.get_running_loop()
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)
87
  #im = jojogan.predict(attachment.url, style)