Skip to content
Advertisement

How do i embed nnv diagram in flask?

I want to embed a nnv render in flask but my code semms to not be rendering the neural-network diagram.

My code:

JavaScript

Advertisement

Answer

The problem is that matplotlib is used to plot the neural network graph; in order to return an image as an HTTP response, you need to convert the plot to bytes.

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement