nbaldwin commited on
Commit
0f4e67c
·
1 Parent(s): 7dec775
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
@@ -45,7 +45,7 @@ if __name__ == "__main__":
45
 
46
 
47
  #3. ~~~~ Serve The Flow ~~~~
48
- serve_utils.serve_flow(
49
  cl = cl,
50
  flow_class_name="flow_modules.aiflows.FixedReplyFlowModule.FixedReplyFlow",
51
  flow_endpoint="FixedReplyFlow",
@@ -55,7 +55,7 @@ if __name__ == "__main__":
55
  run_dispatch_worker_thread(cl)
56
 
57
  #5. ~~~~~Mount the flow and get its proxy~~~~~~
58
- proxy_flow= serve_utils.get_flow_instance(
59
  cl=cl,
60
  flow_endpoint="FixedReplyFlow",
61
  user_id="local",
@@ -94,5 +94,5 @@ if __name__ == "__main__":
94
 
95
 
96
  #9. ~~~~~Optional: Unserve Flow~~~~~~
97
- # serve_utils.delete_served_flow(cl, "FlowModule")
98
 
 
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
 
45
 
46
 
47
  #3. ~~~~ Serve The Flow ~~~~
48
+ serving.serve_flow(
49
  cl = cl,
50
  flow_class_name="flow_modules.aiflows.FixedReplyFlowModule.FixedReplyFlow",
51
  flow_endpoint="FixedReplyFlow",
 
55
  run_dispatch_worker_thread(cl)
56
 
57
  #5. ~~~~~Mount the flow and get its proxy~~~~~~
58
+ proxy_flow= serving.get_flow_instance(
59
  cl=cl,
60
  flow_endpoint="FixedReplyFlow",
61
  user_id="local",
 
94
 
95
 
96
  #9. ~~~~~Optional: Unserve Flow~~~~~~
97
+ # serving.delete_served_flow(cl, "FlowModule")
98