tharms commited on
Commit
cb47d56
·
1 Parent(s): 05d1596

playgound with openai dependency 4/3

Browse files
Files changed (1) hide show
  1. modules/async_worker.py +7 -0
modules/async_worker.py CHANGED
@@ -15,10 +15,17 @@ class AsyncTask:
15
 
16
  async_tasks = []
17
 
 
 
 
18
 
19
  def worker():
20
  global async_tasks
21
 
 
 
 
 
22
  import os
23
  import traceback
24
  import math
 
15
 
16
  async_tasks = []
17
 
18
+ def ini_args():
19
+ from args_manager import args
20
+ return args
21
 
22
  def worker():
23
  global async_tasks
24
 
25
+ args = ini_args()
26
+ if args.api_mode:
27
+ return
28
+
29
  import os
30
  import traceback
31
  import math