nbaldwin commited on
Commit
64c496e
·
1 Parent(s): 005876e
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
@@ -55,7 +55,7 @@ if __name__ == "__main__":
55
 
56
 
57
  #3. ~~~~ Serve The Flow ~~~~
58
- serve_utils.serve_flow(
59
  cl = cl,
60
  flow_class_name="flow_modules.aiflows.FlowModule.NAMEHERE",
61
  flow_endpoint="FlowModule",
@@ -65,7 +65,7 @@ if __name__ == "__main__":
65
  run_dispatch_worker_thread(cl)
66
 
67
  #5. ~~~~~Mount the flow and get its proxy~~~~~~
68
- proxy_flow= serve_utils.get_flow_instance(
69
  cl=cl,
70
  flow_endpoint="FlowModule",
71
  user_id="local",
@@ -98,5 +98,5 @@ if __name__ == "__main__":
98
 
99
 
100
  #9. ~~~~~Optional: Unserve Flow~~~~~~
101
- # serve_utils.delete_served_flow(cl, "FlowModule")
102
 
 
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
 
55
 
56
 
57
  #3. ~~~~ Serve The Flow ~~~~
58
+ serving.serve_flow(
59
  cl = cl,
60
  flow_class_name="flow_modules.aiflows.FlowModule.NAMEHERE",
61
  flow_endpoint="FlowModule",
 
65
  run_dispatch_worker_thread(cl)
66
 
67
  #5. ~~~~~Mount the flow and get its proxy~~~~~~
68
+ proxy_flow= serving.get_flow_instance(
69
  cl=cl,
70
  flow_endpoint="FlowModule",
71
  user_id="local",
 
98
 
99
 
100
  #9. ~~~~~Optional: Unserve Flow~~~~~~
101
+ # serving.delete_served_flow(cl, "FlowModule")
102