详细内容
SearchCTRL+K
NewGradio 6 is here!Learn more UpdateHackathon deadline approachingSubmit now
Build machine learning apps in Python
Create web interfaces for your ML models in minutes. Deploy anywhere,
share with anyone.
Click Me
051015
A
B
C
···
···
···
···
···
···
···
···
···
···
···
···


◢◢
0100




Accept terms
123
defhello():
print("Hi")
return42
Click Me
051015
A
B
C
···
···
···
···
···
···
···
···
···
···
···
···


◢◢
0100




Accept terms
123
defhello():
print("Hi")
return42
Hi! How can I help?
Hello!
👋
Goodsentimentbad
Option 1Option 2
📁Documents
📄file.txt
📁Images
⋮⋮Item 1
⋮⋮Item 2
⋮⋮Item 3
▶
0:15

FaceEar
Option A
Hi! How can I help?
Hello!
👋
Goodsentimentbad
Option 1Option 2
📁Documents
📄file.txt
📁Images
⋮⋮Item 1
⋮⋮Item 2
⋮⋮Item 3
▶
0:15

FaceEar
Option A
Everything you need to build
Gradio handles the frontend so you can focus on building. From prototypes
to production-ready web apps.
Lightning Fast Setup
One command to install. A few lines of Python to launch. No
Javascript, CSS, or frontend experience required.
$ pip install gradio
Successfully installed gradio
$ python app.py
Running on http://127.0.0.1:7860
40+ Components
Input and output for any data type: Images, Audio, Video, 3D,
Dataframes, and more.
AudioImageChatVideoPlotJSON+ many more
Permanent Hosting
Deploy to Hugging Face Spaces for free. Always online, auto-scaling,
and shareable with a simple URL.
Live on HF Spaces
Share Instantly
Create a public link to your machine learning demo running on your
local computer in seconds. Great for showing clients or colleagues.
demo.launch(share=True)
Live
What's the weather like?
It's sunny and 72°F today!
Perfect, thanks!
...
import gradio as gr
def greet(name):
return "Hello " + name + "!"
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
demo.launch()
Loading...
gradio/hello_worldbuilt with Gradio.Hosted on  Spaces
false
Loading...
gradio/map_airbnbbuilt with Gradio.Hosted on  Spaces
false
Loading...
gradio/chatinterface_streaming_echobuilt with Gradio.Hosted on  Spaces
false
Loading...
gradio/fake_ganbuilt with Gradio.Hosted on  Spaces
\
\
Anastasios Nikolas Angelopoulos@ml_angelopoulos\
\
We love @Gradio. \
\
It helped us scale to our first million users. Amazing and undervalued that Gradio can do this.\
\
cc @_akhaliq
\
\
Jaydeep@_jaydeepkarale\
\
Gradio was love at first sight..so easy to use
\
\
Will Rice@_Will_Rice\
\
Just tried out @Gradio and I am very impressed. Only took like 10mins to put together a #tts demo.
\
\
Art Litvinau@ArtLitvinau\
\
I love how easy is to build quick prototypes with @Gradio ⚡️ this one took me 45 minutes with no previous experience with the library
\
\
Shirochenko Dmitriy@dmshirochenko\
\
Spent the weekend prototyping LLM interfaces directly in Python. @gradio-app is a game changer for rapid UI development. Forget wrestling with JS/CSS; share your model in seconds. Thinking this unlocks serious iteration speed.
\
\
iCode2@Ifeanyidiaye\
\
Apart from being very easy to use, one thing that I simply love about @Gradio is its Javascript client, which makes it easy to build a nice HTML frontend for Python applications. This integration makes me rank gradio high in my list of favorite Python libraries.
\
\
Amar Saini@_Epoching_\
\
Just built a ️@Gradio app for a video related deep learning project. \
\
I’m astonished by how simple it is to use & how elegant it looks! Lots and lots of great features & flexibility. Thanks for making this ❤ \
\
Roxana Daneshjou MD/PhD@RoxanaDaneshjou\
\
Honestly, without @Gradio, we would not be doing a real time AI trial. We have many other ideas for algorithms we want to test through clinical trials, and we know it's possible thanks to @Gradio. \
\
Vinay Prabhu@vinayprabhu\
\
Dear #MachineLearning twitter,\
\
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.
