v1.1.0
Browse files10 unmodified lines111213141415161727 unmodified lines45464748484950513 unmodified lines555657585859606132 unmodified lines94959697979810 unmodified linesfrom aiflows import loggingfrom aiflows.flow_cache import CACHING_PARAMETERS, clear_cache
from aiflows.utils import serve_utilsfrom aiflows.utils import servingfrom aiflows.workers import run_dispatch_worker_threadfrom aiflows.messages import FlowMessagefrom aiflows.interfaces import KeyInterface27 unmodified lines #3. ~~~~ Serve The Flow ~~~~ serve_utils.serve_flow( serving.serve_flow( cl = cl, flow_class_name="flow_modules.aiflows.FixedReplyFlowModule.FixedReplyFlow", flow_endpoint="FixedReplyFlow",3 unmodified lines run_dispatch_worker_thread(cl)
#5. ~~~~~Mount the flow and get its proxy~~~~~~ proxy_flow= serve_utils.get_flow_instance( proxy_flow= serving.get_flow_instance( cl=cl, flow_endpoint="FixedReplyFlow", user_id="local",32 unmodified lines #9. ~~~~~Optional: Unserve Flow~~~~~~ # serve_utils.delete_served_flow(cl, "FlowModule") # serving.delete_served_flow(cl, "FlowModule")
run.py+4-4