v1.1.0
Browse files9 unmodified lines1011121314151635 unmodified lines525354555657583 unmodified lines6263646566676849 unmodified lines1181191201211229 unmodified linesfrom aiflows import loggingfrom aiflows.flow_cache import CACHING_PARAMETERS, clear_cachefrom aiflows.utils import serve_utilsfrom aiflows.workers import run_dispatch_worker_threadfrom aiflows.messages import FlowMessagefrom aiflows.interfaces import KeyInterface35 unmodified lines#3. ~~~~ Serve The Flow ~~~~serve_utils.serve_flow(cl = cl,flow_class_name="flow_modules.aiflows.VisionFlowModule.VisionAtomicFlow",flow_endpoint="VisionAtomicFlow",3 unmodified linesrun_dispatch_worker_thread(cl)#5. ~~~~~Mount the flow and get an instance of it via a proxy~~~~~~proxy_flow= serve_utils.get_flow_instance(cl=cl,flow_endpoint="VisionAtomicFlow",user_id="local",49 unmodified lines#9. ~~~~~Optional: Unserve Flow~~~~~~# serve_utils.delete_served_flow(cl, "VisionFlowModule")9 unmodified lines1011121314151635 unmodified lines525354555657583 unmodified lines6263646566676849 unmodified lines1181191201211229 unmodified linesfrom aiflows import loggingfrom aiflows.flow_cache import CACHING_PARAMETERS, clear_cachefrom aiflows.utils import servingfrom aiflows.workers import run_dispatch_worker_threadfrom aiflows.messages import FlowMessagefrom aiflows.interfaces import KeyInterface35 unmodified lines#3. ~~~~ Serve The Flow ~~~~serving.serve_flow(cl = cl,flow_class_name="flow_modules.aiflows.VisionFlowModule.VisionAtomicFlow",flow_endpoint="VisionAtomicFlow",3 unmodified linesrun_dispatch_worker_thread(cl)#5. ~~~~~Mount the flow and get an instance of it via a proxy~~~~~~proxy_flow= serving.get_flow_instance(cl=cl,flow_endpoint="VisionAtomicFlow",user_id="local",49 unmodified lines#9. ~~~~~Optional: Unserve Flow~~~~~~# serving.delete_served_flow(cl, "VisionFlowModule")
run.py+4-4