Move from a prototype Gradio demo to a production multi-page Agent UI with persistent sessions, auth, inline approvals, and 81 composable blocks — while keeping Gradio's 5-line function simplicity via aiui.interface().
aiui.interface()
| Gradio | PraisonAIUI (aiui) |
aiui
|---|---|
| gr.Interface(fn, inputs, outputs).launch() | aiui.interface(fn, inputs=[...], title="App") + aiui run app.py |
gr.Interface(fn, inputs, outputs).launch()
aiui.interface(fn, inputs=[...], title="App")
aiui run app.py
| gr.ChatInterface(fn) | @aiui.reply + await aiui.stream_token(tok) |
gr.ChatInterface(fn)
@aiui.reply
await aiui.stream_token(tok)
| gr.File() | aiui.file_upload("Upload", name="doc") + aiui.get_uploaded_file(doc) |
gr.File()
aiui.file_upload("Upload", name="doc")
aiui.get_uploaded_file(doc)
| Generator yield streaming | yield directly inside aiui.interface() or @aiui.register_page_action |
yield
@aiui.register_page_action
| gr.Chatbot inside gr.Blocks | aiui.chat_panel() inside aiui.columns([...]) |
gr.Chatbot
gr.Blocks
aiui.chat_panel()
aiui.columns([...])
| gr.Dataframe / gr.Plot | aiui.table(df) / aiui.chart(data=df) / aiui.plotly_chart(fig) |
gr.Dataframe
gr.Plot
aiui.table(df)
aiui.chart(data=df)
aiui.plotly_chart(fig)
<Tabs>
<Tab title="PraisonAIUI">
</Tab>
<Tab title="Gradio">
</Tabs>
For live webcam/sketchpad ML model demos (gr.Image(tool="sketch"), gr.Webcam), Gradio remains specialized for ML demos. PraisonAIUI shines when you are shipping AI Agent applications with tool calls, approvals, dashboards, file uploads, and authentication.
gr.Image(tool="sketch")
gr.Webcam