# How to host your deep learning model trained in flux

**URL:** https://discourse.julialang.org/t/how-to-host-your-deep-learning-model-trained-in-flux/41561
**Category:** Offtopic
**Tags:** question
**Created:** [June 17, 2020, 12:06am UTC](https://discourse.julialang.org/t/how-to-host-your-deep-learning-model-trained-in-flux/41561 "2020-06-17T00:06:55Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![AbhimanyuAryan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abhimanyuaryan/32/15733_2.png) [@AbhimanyuAryan](https://discourse.julialang.org/u/AbhimanyuAryan)
#### Post date: [June 17, 2020, 12:06am UTC](https://discourse.julialang.org/t/how-to-host-your-deep-learning-model-trained-in-flux/41561/1 "2020-06-17T00:06:55Z")

</div>

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

---

<div class="post-metadata">

### Author: ![AbhimanyuAryan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abhimanyuaryan/32/15733_2.png) [@AbhimanyuAryan](https://discourse.julialang.org/u/AbhimanyuAryan)
#### Post date: [October 11, 2021, 2:05pm UTC](https://discourse.julialang.org/t/how-to-host-your-deep-learning-model-trained-in-flux/41561/2 "2021-10-11T14:05:26Z")

</div>

```julia
function predict(req)
    io = IOBuffer(HTTP.payload(req))
    x = JSON3.read(io)
    y = model(x)
    HTTP.Response(200, JSON3.write(y))
end

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

```

---

<div class="post-metadata">

### Author: ![bernhard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bernhard/32/2619_2.png) [@bernhard](https://discourse.julialang.org/u/bernhard)
#### Post date: [October 12, 2021, 11:23am UTC](https://discourse.julialang.org/t/how-to-host-your-deep-learning-model-trained-in-flux/41561/3 "2021-10-12T11:23:06Z")

</div>

There is also Dash.jl

---

<div class="post-metadata">

### Author: ![AbhimanyuAryan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abhimanyuaryan/32/15733_2.png) [@AbhimanyuAryan](https://discourse.julialang.org/u/AbhimanyuAryan)
#### Post date: [October 14, 2021, 6:12am UTC](https://discourse.julialang.org/t/how-to-host-your-deep-learning-model-trained-in-flux/41561/4 "2021-10-14T06:12:19Z")

</div>

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

---

<div class="post-metadata">

### Author: ![DoktorMike](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/doktormike/32/2736_2.png) [@DoktorMike](https://discourse.julialang.org/u/DoktorMike)
#### Post date: [October 15, 2021, 4:45pm UTC](https://discourse.julialang.org/t/how-to-host-your-deep-learning-model-trained-in-flux/41561/5 "2021-10-15T16:45:07Z")

</div>

But your example was just HTTP right, not genie?

---

<div class="post-metadata">

### Author: ![bernhard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bernhard/32/2619_2.png) [@bernhard](https://discourse.julialang.org/u/bernhard)
#### Post date: [October 18, 2021, 7:51am UTC](https://discourse.julialang.org/t/how-to-host-your-deep-learning-model-trained-in-flux/41561/6 "2021-10-18T07:51:45Z")

</div>

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

---

<div class="post-metadata">

### Author: ![AbhimanyuAryan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abhimanyuaryan/32/15733_2.png) [@AbhimanyuAryan](https://discourse.julialang.org/u/AbhimanyuAryan)
#### Post date: [October 18, 2021, 10:40am UTC](https://discourse.julialang.org/t/how-to-host-your-deep-learning-model-trained-in-flux/41561/7 "2021-10-18T10:40:56Z")

</div>

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

---

<div class="post-metadata">

### Author: ![AbhimanyuAryan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abhimanyuaryan/32/15733_2.png) [@AbhimanyuAryan](https://discourse.julialang.org/u/AbhimanyuAryan)
#### Post date: [March 25, 2022, 8:05am UTC](https://discourse.julialang.org/t/how-to-host-your-deep-learning-model-trained-in-flux/41561/8 "2022-03-25T08:05:25Z")

</div>

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

[https://github.com/AbhimanyuAryan/stipple-fastai](https://github.com/AbhimanyuAryan/stipple-fastai)
