ai-gradio  by AK391

Python package for AI app creation using Gradio

Created 9 months ago
1,648 stars

Top 25.6% on SourcePulse

GitHubView on GitHub
1 Expert Loves This Project
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

5 months ago

Responsiveness

Inactive

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

Explore Similar Projects

Feedback? Help us improve.