How to host your deep learning model trained in flux

How to host your saved julia flux model on web? Like Pytorch and Flask are used

1 Like
function predict(req)
    io = IOBuffer(HTTP.payload(req))
    x =
    y = model(x)
    HTTP.Response(200, JSON3.write(y))

router = HTTP.Router()
HTTP.@register(router, "POST", "predict", predict)
HTTP.serve(router, "", port)
1 Like

There is also Dash.jl

1 Like

I find a lot of features missing in Dash. I would rather use Genie.jl

1 Like

But your example was just HTTP right, not genie?

This makes me wonder. Are there any ‘example’ pages out there which are based on Genie.jl?

Yes I’m working on Genie example/tutorial. This was a quick snippet meanwhile

1 Like

I am working on an example with Stipple FastAI.jl(model) and Genie. You might wanna check. However it’s still work in progress

What is Stipple? It’s a all-in-one Streamlit and Plotly solution for Julia. You can make Single page apps and multi-page apps in Julia itself which is then converted in vuejs code …it’s built on top of Genie

Why FastAI? I was already familiar with FastAI python(but not very familiar with Flux.jl) …also SOTA results