Gradio
source link: https://gradio.app/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Gradio is the fastest way to demo your machine learning model with a friendly web interface so that anyone can use it, anywhere!
import gradio as gr
def sketch_recognition(img):
# Implement sketch recognition model here...
# Return labels and confidences as dictionary
iface = gr.Interface(fn=sketch_recognition, inputs="sketchpad", outputs="label").launch()
Who wants to play Pictionary? Draw a common object like a shovel or a laptop, and the algorithm will guess in real time!
Fast, easy setup
Gradio can be installed directly through pip. Creating a Gradio interface only requires adding a couple lines of code to your project. You can choose from a variety of interface types to interface your function.
Read more on Getting Started...
Present and share
Gradio can be embedded in Python notebooks or presented as a webpage. A Gradio interface can automatically generate a public link you can share with colleagues that lets them interact with the model on your computer remotely from their own devices.
Permanent hosting
Once you've created an interface, you can permanently host your interface on Huggingface Spaces. Huggingface Spaces will host the interface on its servers and provide you with a link you can share.
Gradio is now an essential part of our ML demos. All it takes is a few minutes to make a demo come to life.
Gradio accelerated our efforts to build and demo interdisciplinary models by quickly letting clinicians interact with machine learning models without writing any code. It's a huge time-saver!
If you haven't typed:
$ pip install gradio
yet, now would be a damn good time.
Especially if you are working in computer vision & deploying models in the real world. twitter.com/abidlabs/statu...
🎉 It is framework agnostic - use
@PyTorch
@Tensorflow
@scikit_learn
or any of your fav. ML framework.
👉 Get started with a single line of code.
+ Generate an easy-to-use UI for your #ML model, function, or #API with only a few lines of code!
+ Integrate directly into your @ProjectJupyter notebook
+ or share a link with anyone
h/t @VincentTerrasi
#MachineLearning
www.gradio.app
- AutoNLP to finetune Bart
- @Gradio for the UI
- @huggingface's Spaces for hosting and compute
Try it here: https://huggingface.co/spa...
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK