nbaldwin commited on
Commit
2cb7341
·
1 Parent(s): 537fd37

Clean Versions

Browse files
Files changed (1) hide show
  1. run.py +10 -14
run.py CHANGED
@@ -55,25 +55,21 @@ if __name__ == "__main__":
55
 
56
  #3. ~~~~ Serve The Flow ~~~~
57
  serve_utils.serve_flow(
58
- cl = cl,
59
- flow_type="ChatFlowModule",
60
- default_config=cfg,
61
- default_state=None,
62
- default_dispatch_point="coflows_dispatch"
63
  )
64
-
65
  #4. ~~~~~Start A Worker Thread~~~~~
66
- run_dispatch_worker_thread(cl, dispatch_point="coflows_dispatch", flow_modules_base_path=FLOW_MODULES_PATH)
67
 
68
  #5. ~~~~~Mount the flow and get its proxy~~~~~~
69
- proxy_flow = serve_utils.recursive_mount(
70
  cl=cl,
71
- client_id="local",
72
- flow_type="ChatFlowModule",
73
- config_overrides=None,
74
- initial_state=None,
75
- dispatch_point_override=None,
76
- )
77
 
78
 
79
  #6. ~~~ Get the data ~~~
 
55
 
56
  #3. ~~~~ Serve The Flow ~~~~
57
  serve_utils.serve_flow(
58
+ cl=cl,
59
+ flow_class_name="flow_modules.aiflows.ChatFlowModule.ChatAtomicFlow",
60
+ flow_endpoint="ChatAtomicFlow",
 
 
61
  )
62
+
63
  #4. ~~~~~Start A Worker Thread~~~~~
64
+ run_dispatch_worker_thread(cl)
65
 
66
  #5. ~~~~~Mount the flow and get its proxy~~~~~~
67
+ proxy_flow= serve_utils.get_flow_instance(
68
  cl=cl,
69
+ flow_endpoint="ChatAtomicFlow",
70
+ user_id="local",
71
+ config_overrides= cfg
72
+ )
 
 
73
 
74
 
75
  #6. ~~~ Get the data ~~~