[docs]@time_profilerdefdeploy_flow(flow_yaml:str,):"""Deploy a Flow on JCloud."""# TODO create tmpdir top level and pass it downwithtempfile.TemporaryDirectory()astmpdir:# hack we don't know if the flow yaml is a path or a stringiftype(flow_yaml)==dict:flow_file=os.path.join(tmpdir,'flow.yml')write_flow_file(flow_yaml,flow_file)flow_yaml=flow_fileflow=deploy_wolf(path=flow_yaml)gateway_host_http=flow.endpoints['gateway (http)']client=Client(host=gateway_host_http)returnclient,gateway_host_http
You can ask questions about our docs. Try:
What is Jina NOW?
How to install NOW?
What apps are supported?
Hi there 👋
Ask our docs!😵💫 I'm sorry but I don't know the answer.