Gradio is an open-source Python library that allows you to quickly create user-friendly web interfaces for your machine learning models, APIs, or any Python function. With Gradio, you can demo your models, share them with others, and collect feedback easily.
- Create interactive demos for machine learning models in minutes
- Supports images, text, audio, video, and more as inputs/outputs
- Share demos with a public link instantly
- Integrate with Hugging Face Spaces and other platforms
pip install gradio
Here's a simple example to get you started:
import gradio as gr
def greet(name):
return f"Hello, {name}!"
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()
This project is licensed under the Apache 2.0 License.