← all repositories
AK391/ai-gradio

One-liner Gradio apps for 15+ AI providers

A thin but practical wrapper that turns `gr.load()` into a universal remote for language models, browser agents, and even virtual macOS desktops.

ai-gradio
Velocity · 7d
+3.0
★ / day
Trend
steady
star history

What it does ai-gradio is a convenience layer over Gradio that lets you spin up chat, voice, code, or agent interfaces by passing a provider-prefixed model string to gr.load(). It handles the wiring for OpenAI, Anthropic, Gemini, Groq, DeepSeek, and roughly a dozen others, plus optional extras like CrewAI teams, browser automation, and a “computer-use” mode that drives a virtual macOS environment.

The interesting bit The project treats Gradio’s registry system as a plugin bus: gr.load(name='browser:gpt-4-turbo', src=ai_gradio.registry) is all it takes to get an AI browsing the web for you. The computer-use integration is the quirkiest corner — it requires Apple Silicon, a Lume daemon, and pulling a pre-built macOS image, but the README walks through the full ritual.

Key highlights

  • 15+ providers via pip extras (ai-gradio[openai], [gemini], [browser], etc.)
  • Modes: text chat, voice (WebRTC via Twilio), camera/vision, code assistant, and multi-provider tabs
  • Agent flavors: CrewAI teams, Langchain agents, Swarms, browser-use, and CUA (virtual macOS/Linux control)
  • Local model support through transformers: prefix (e.g., transformers:phi-4)
  • Python 3.10+, Gradio ≥5.9.1

Caveats

  • Computer-use is macOS-only and requires Apple Silicon plus Sonoma; Linux support is mentioned but the install docs are macOS-centric
  • Voice chat needs Twilio credentials, which is a non-obvious extra hoop
  • The README lists model names that may lag provider catalogs (e.g., GPT-4o is absent, GPT-4-turbo is still featured)

Verdict Worth a look if you prototype AI UIs in Gradio and are tired of writing the same provider boilerplate. Skip it if you need deep customization or already maintain your own abstraction layer — this is glue code, albeit tidy glue code.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.