ai-gradio  by AK391

Python package for AI app creation using Gradio

created 7 months ago
1,625 stars

Top 26.4% on sourcepulse

GitHubView on GitHub
Project Summary

This package provides a unified interface for building AI-powered applications using Gradio, targeting developers who want to easily integrate with multiple AI providers. It simplifies the creation of chat, voice, video, and agent-based applications across various AI models and services.

How It Works

The library leverages Gradio's gr.load function and a centralized registry to abstract away the complexities of interacting with different AI providers. It supports a wide array of models from OpenAI, Google Gemini, Anthropic, Groq, and more, offering specialized interfaces for tasks like coding assistance, multi-modal interactions, agent teams (CrewAI), and browser automation.

Quick Start & Requirements

  • Installation: pip install ai-gradio or pip install 'ai-gradio[all]' for all providers.
  • Prerequisites: Python 3.10+, Gradio >= 5.9.1. API keys for desired AI providers (e.g., OpenAI, Gemini, Anthropic) and potentially Twilio credentials for voice chat are required. Browser automation requires Playwright. The Computer-Use Agent requires macOS with Apple Silicon and macOS 14+.
  • Usage: Examples demonstrate gr.load with provider-specific names (e.g., 'openai:gpt-4-turbo') and optional parameters for features like enable_voice=True or camera=True.
  • Docs: [Not explicitly linked, but usage examples are provided.]

Highlighted Details

  • Supports 15+ AI providers including OpenAI, Gemini, Anthropic, and Groq.
  • Offers specialized interfaces for text chat, voice chat, video processing, code generation, and multi-modal inputs.
  • Integrates with CrewAI for agent teams and provides browser automation capabilities.
  • Includes a Computer-Use Agent for controlling virtual macOS/Linux environments.

Maintenance & Community

  • Contributions are welcome via Pull Requests.
  • [No specific community links or contributor information provided in the README.]

Licensing & Compatibility

  • [License type not specified in the README.]
  • Compatible with Gradio applications. Commercial use depends on the underlying AI provider licenses and the project's own license (which is not stated).

Limitations & Caveats

The Computer-Use Agent has specific macOS hardware and OS version requirements (Apple Silicon, macOS 14+). Some advanced features like voice chat require additional dependencies (gradio-webrtc, numba, pydub, librosa). The README does not specify the project's license.

Health Check
Last commit

3 months ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
37 stars in the last 90 days

Explore Similar Projects

Starred by Tobi Lutke Tobi Lutke(Cofounder of Shopify), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
4 more.

cua by trycua

0.5%
9k
AI agent framework for computer OS control in virtual containers
created 6 months ago
updated 2 days ago
Starred by Wes McKinney Wes McKinney(Author of Pandas), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
9 more.

autogen by microsoft

0.6%
48k
Agentic framework for multi-agent AI applications
created 1 year ago
updated 1 day ago
Feedback? Help us improve.