演示

借助 Gradio,你只要用几行 Python 代码就能构建出下面这些例子。如果你已经准备好开始学,请前往 ⚡ 快速起步

你还可以到 Spaces 页查看更多演示。

🖊️ Text & Natural Language Processing

The simplest possible Gradio demo. It wraps a 'Hello {name}!' function in an Interface that accepts and returns text.

import gradio as gr

def greet(name):
    return "Hello " + name + "!"

demo = gr.Interface(fn=greet, inputs="text", outputs="text")
    
if __name__ == "__main__":
    demo.launch()   

🖼️ Images & Computer Vision

📈 Tabular Data & Plots

🎤 Audio & Speech