this post was submitted on 23 Nov 2023
1 points (100.0% liked)

Machine Learning

1 readers
1 users here now

Community Rules:

founded 1 year ago
MODERATORS
 

I am looking for an easy way to turn my local Jupyter notebooks into a deployable model without having to write a lot of code or configuration. Thank you.

โ€‹

you are viewing a single comment's thread
view the rest of the comments
[โ€“] MangoReady901@alien.top 1 points 11 months ago

Us nbimporter, create a function of the code you want to use. Pick your favorite api framework (sanic, flask, fast API). Import your function from your notebook and wrap in a simple get/post request. Additionally take the output of your function and return it as some kind of Json item.

I can setup a quick demo if any of this went over your head. Think this is a great idea to develop robust/testable code that's easy to debug.