Live data from Hacker News

Show HN: GUIs for Faster ML Prototyping and Sharing

github.com

11–20 of 28 posts

Re: Show HN: GUIs for Faster ML Prototyping and Sharing

#11
post #5

This is cool, I am playing around with ML myself, and was just looking for a lightweight way to get dynamic input to models. The minst handwriting demo in the readme is almost exactly what I wanted. I have no idea what the architecture is, but it would be really cool to have this dynamic interface play nice with VSCode's notebook (jupyter) functionality, so I can add dynamic inputs right inline with the rest of the c…

Update: it works! Check it out here: https://imgur.com/zPZdvlK

Let me know if this is what you meant :)

Re: Show HN: GUIs for Faster ML Prototyping and Sharing

#12
post #9
post #7

Okay: 1. This is awesome. Seriously, I will use this the next time I'm prototyping an image or text model. 2. Is there a way to entirely disable telemetry? I could imagine wanting to use this for models within a company that use sensitive data, etc., but wouldn't want to or be able to use it if the model interface was published either to gradio's internal APIs or to some sharable link that wasn't on a corporate netwo…

1. Thanks, would love to see what you build :) 2. By default, we only create a localhost link, no share link is created (with the exception of colab as we cannot access localhost there). You can then use that to set up port forwarding etc. Let me know if this answers your question?

I think you did answer my question for (2), thanks! I just got a bit scared by a link saying gradio.app in it.

Re: Show HN: GUIs for Faster ML Prototyping and Sharing

#13
It's cool that you can immediately update the output whenever the input changes.

But what if the code inside the function changes? Do you have hot reloading functionality?

Streamlit handles this by re-executing the whole script when detecting any code changes. You can cache certain resources (such as the model), but it's fiddly to get right.

Re: Show HN: GUIs for Faster ML Prototyping and Sharing

#14
post #9

Earlier quoted context omitted.

1. Thanks, would love to see what you build :) 2. By default, we only create a localhost link, no share link is created (with the exception of colab as we cannot access localhost there). You can then use that to set up port forwarding etc. Let me know if this answers your question?

I think you did answer my question for (2), thanks! I just got a bit scared by a link saying gradio.app in it.

Makes sense :)

Re: Show HN: GUIs for Faster ML Prototyping and Sharing

#15
post #13

It's cool that you can immediately update the output whenever the input changes. But what if the code inside the function changes? Do you have hot reloading functionality? Streamlit handles this by re-executing the whole script when detecting any code changes. You can cache certain resources (such as the model), but it's fiddly to get right.

We don't have hot reloading. We avoided caching certain resources because of this exact reason, its a bit finicky. But we're working on a better way to do it.

Re: Show HN: GUIs for Faster ML Prototyping and Sharing

#16
post #11
post #5

This is cool, I am playing around with ML myself, and was just looking for a lightweight way to get dynamic input to models. The minst handwriting demo in the readme is almost exactly what I wanted. I have no idea what the architecture is, but it would be really cool to have this dynamic interface play nice with VSCode's notebook (jupyter) functionality, so I can add dynamic inputs right inline with the rest of the c…

Update: it works! Check it out here: https://imgur.com/zPZdvlK Let me know if this is what you meant :)

Wow, very cool. That's exactly what I was thinking.

Re: Show HN: GUIs for Faster ML Prototyping and Sharing

#18

How does gradio differ from streamlit[1]? [1] https://github.com/streamlit/streamlit

Streamlit is a great library, especially for creating full, standalone dashboards. Here's where I think Gradio's focus is different:

- Our UI components are optimized for machine learning models. For example, we make it super easy for you to put in a drag-and-drop image upload for your image classification model, and we'll handle the preprocessing to convert the input image to a numpy array of specified shape & the postprocessing to convert the confidences to nice graphical labels. We're trying to eliminate boilerplate preprocessing & postprocessing as much as possible. Just specify the UI components that make sense for your model in 1 line of code, and then launch() to create the interface!

- We are designing our UI components so that you can get more insight into how your model is performing. For example, here we obscure / crop different parts of an image to explore what in the image might be causing the model to predict a cheetah: https://i.imgur.com/t0Inliy.mp4 We are planning on releasing a lot more features specifically focused on model testing & validation, and would love to hear from you if that sounds useful

- Gradio integrates seamlessly with jupyter / colab notebooks, so you can use your existing workflow (I don't believe that's true for streamlit)

Re: Show HN: GUIs for Faster ML Prototyping and Sharing

#19
post #3

ML in this case = Machine Learning (not the programming language family that includes SML, MLton and OCaml)

I was just digging around earlier today trying to find if an SML language server exists (sadly, the answer is no), and this title got my hopes up just a little bit
Post reply on HN