I need an example of deploying a Nuclio function using MLRun.
You should follow these steps:
code_to_function
as in this example:fn = code_to_function(name='data-generator', handler='main', kind='job', filename='functions/code.py')
with_http
on the function:fn.with_http(host='URL_path', port=port_number)
fn.deploy()