nbaldwin commited on
Commit
2939251
·
1 Parent(s): cf66bc7
Files changed (1) hide show
  1. run.py +4 -4
run.py CHANGED
@@ -11,7 +11,7 @@ from aiflows.utils.general_helpers import read_yaml_file, quick_load_api_keys
11
  from aiflows import logging
12
  from aiflows.flow_cache import CACHING_PARAMETERS, clear_cache
13
 
14
- from aiflows.utils import serve_utils
15
  from aiflows.workers import run_dispatch_worker_thread
16
  from aiflows.messages import FlowMessage
17
  from aiflows.interfaces import KeyInterface
@@ -59,7 +59,7 @@ if __name__ == "__main__":
59
 
60
 
61
  #3. ~~~~ Serve The Flow ~~~~
62
- serve_utils.recursive_serve_flow(
63
  cl = cl,
64
  flow_class_name="flow_modules.aiflows.AutoGPTFlowModule.AutoGPTFlow",
65
  flow_endpoint="AutoGPTFlow",
@@ -69,7 +69,7 @@ if __name__ == "__main__":
69
  run_dispatch_worker_thread(cl)
70
 
71
  #5. ~~~~~Mount the flow and get its proxy~~~~~~
72
- proxy_flow= serve_utils.get_flow_instance(
73
  cl=cl,
74
  flow_endpoint="AutoGPTFlow",
75
  user_id="local",
@@ -105,4 +105,4 @@ if __name__ == "__main__":
105
 
106
 
107
  #9. ~~~~~Optional: Unserve Flow~~~~~~
108
- # serve_utils.delete_served_flow(cl, "FlowModule")
 
11
  from aiflows import logging
12
  from aiflows.flow_cache import CACHING_PARAMETERS, clear_cache
13
 
14
+ from aiflows.utils import serving
15
  from aiflows.workers import run_dispatch_worker_thread
16
  from aiflows.messages import FlowMessage
17
  from aiflows.interfaces import KeyInterface
 
59
 
60
 
61
  #3. ~~~~ Serve The Flow ~~~~
62
+ serving.recursive_serve_flow(
63
  cl = cl,
64
  flow_class_name="flow_modules.aiflows.AutoGPTFlowModule.AutoGPTFlow",
65
  flow_endpoint="AutoGPTFlow",
 
69
  run_dispatch_worker_thread(cl)
70
 
71
  #5. ~~~~~Mount the flow and get its proxy~~~~~~
72
+ proxy_flow= serving.get_flow_instance(
73
  cl=cl,
74
  flow_endpoint="AutoGPTFlow",
75
  user_id="local",
 
105
 
106
 
107
  #9. ~~~~~Optional: Unserve Flow~~~~~~
108
+ # serving.delete_served_flow(cl, "FlowModule")