v1.1.0
Browse files8 unmodified lines91011121213141539 unmodified lines55565758585960614 unmodified lines666768696970717226 unmodified lines991001011021021038 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 KeyInterface39 unmodified lines
#3. ~~~~ Serve The Flow ~~~~ serve_utils.recursive_serve_flow( serving.recursive_serve_flow( cl=cl, flow_class_name="flow_modules.aiflows.ChatInteractiveFlowModule.ChatHumanFlowModule", flow_endpoint="ChatHumanFlowModule",4 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="ChatHumanFlowModule", user_id="local",26 unmodified lines #9. ~~~~~Optional: Unserve Flow~~~~~~ # serve_utils.delete_served_flow(cl, "ChatWithDemonstrationFlowModule") o_caching = False # Set to True to enable caching # serving.delete_served_flow(cl, "ChatWithDemonstrationFlowModule") o_caching = False # Set to True to enable caching
run.py+4-4