|
Download README.md from mgbam/yeye: direct link, hf CLI and curl.
- Browser
- Download file 15.7 kB
-
https://huggingface.co/spaces/mgbam/yeye/resolve/d265bec322dbf6c7d35cd271fe4da1f5e8a8873b/README.md
- Command line
-
hf download hf://spaces/mgbam/yeye@d265bec322dbf6c7d35cd271fe4da1f5e8a8873b/README.md
-
curl -L -o README.md https://huggingface.co/spaces/mgbam/yeye/resolve/d265bec322dbf6c7d35cd271fe4da1f5e8a8873b/README.md
15.7 kB
| title: Yeye | |
| emoji: π | |
| colorFrom: gray | |
| colorTo: red | |
| sdk: gradio | |
| sdk_version: 5.43.1 | |
| app_file: app.py | |
| pinned: false | |
| Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference | |
| # Coder - Professional AI Development Suite | |
| [](https://www.python.org/downloads/) | |
| [](https://gradio.app/) | |
| [](https://opensource.org/licenses/MIT) | |
| [](https://github.com/psf/black) | |
| AnyCoder is a comprehensive AI-powered development suite that enables developers and creators to generate, modify, and deploy modern applications using state-of-the-art language models. Built with a professional-grade architecture, it supports multiple frameworks, real-time media generation, and seamless deployment workflows. | |
| ## β¨ Key Features | |
| ### π€ **Advanced AI Models** | |
| - **20+ Premium Models**: Access to GPT-5, Claude Opus 4.1, DeepSeek V3.1, Qwen3-Coder, and more | |
| - **Vision-Language Support**: Generate code from UI mockups and design images | |
| - **Specialized Models**: Code-focused models for optimal programming assistance | |
| - **Intelligent Model Selection**: Automatic model routing based on task requirements | |
| ### π¨ **Multi-Framework Support** | |
| - **Static HTML/CSS/JS**: Modern responsive websites with advanced styling | |
| - **Streamlit Applications**: Interactive data apps with real-time previews | |
| - **Gradio Interfaces**: ML/AI applications with professional UIs | |
| - **Transformers.js**: Client-side AI/ML web applications | |
| - **Svelte Applications**: Reactive, modern web apps with TypeScript | |
| - **Multi-page Projects**: Complex websites with multiple interconnected pages | |
| ### π¬ **Integrated Media Generation** | |
| - **AI Image Generation**: Qwen-Image for high-quality visuals | |
| - **Image-to-Image Transformation**: Qwen-Image-Edit for design modifications | |
| - **Video Generation**: Text-to-video and image-to-video using LTX-Video | |
| - **Music Composition**: ElevenLabs integration for AI-generated soundtracks | |
| - **Smart Media Placement**: Automatic integration into generated applications | |
| ### π **Professional Development Tools** | |
| - **Real-time Web Search**: Tavily integration for current information | |
| - **Website Content Extraction**: Redesign existing sites with preserved content | |
| - **OCR Text Extraction**: Process documents and images for content | |
| - **Multi-file Project Management**: Handle complex project structures | |
| - **Version Control Integration**: GitHub and GitLab repository imports | |
| ### π **Enterprise-Grade Deployment** | |
| - **Hugging Face Spaces**: Automatic deployment with custom configurations | |
| - **Multiple SDK Support**: Static, Gradio, Streamlit, Docker deployments | |
| - **CI/CD Integration**: Automated testing and deployment pipelines | |
| - **Environment Management**: Development, staging, and production workflows | |
| ## ποΈ Architecture Overview | |
| AnyCoder follows a modular, scalable architecture designed for professional development environments: | |
| ``` | |
| anycoder/ | |
| βββ main_app.py # Main application entry point | |
| βββ config.py # Configuration and constants | |
| βββ utils.py # Core utilities and helpers | |
| βββ web_utils.py # Web scraping and search functionality | |
| βββ media_generation.py # AI media generation services | |
| βββ code_processing.py # Code parsing and transformation | |
| βββ deployment/ # Deployment configurations | |
| βββ templates/ # Project templates | |
| βββ static/ # Static assets and resources | |
| βββ tests/ # Comprehensive test suite | |
| ``` | |
| ### Core Components | |
| - **π― main_app.py**: Advanced Gradio interface with professional UI components | |
| - **βοΈ config.py**: Centralized configuration with theme management | |
| - **π οΈ utils.py**: File handling, OCR, media processing, and core utilities | |
| - **π web_utils.py**: Web content extraction, search integration, URL processing | |
| - **π¨ media_generation.py**: AI-powered image, video, and music generation | |
| - **π» code_processing.py**: Multi-language code parsing, transformation, and optimization | |
| ## π Quick Start | |
| ### Prerequisites | |
| - Python 3.8 or higher | |
| - Git (for repository cloning) | |
| - FFmpeg (for video/audio processing) | |
| - Tesseract OCR (for image text extraction) | |
| ### Installation | |
| 1. **Clone the repository:** | |
| ```bash | |
| git clone https://github.com/your-org/anycoder.git | |
| cd anycoder | |
| ``` | |
| 2. **Create a virtual environment:** | |
| ```bash | |
| python -m venv venv | |
| source venv/bin/activate # On Windows: venv\Scripts\activate | |
| ``` | |
| 3. **Install dependencies:** | |
| ```bash | |
| pip install -r requirements.txt | |
| ``` | |
| 4. **Set up environment variables:** | |
| ```bash | |
| cp .env.example .env | |
| # Edit .env with your API keys | |
| ``` | |
| 5. **Launch the application:** | |
| ```bash | |
| python main_app.py | |
| ``` | |
| The application will be available at `http://localhost:7860` | |
| ## π Environment Configuration | |
| Create a `.env` file with the following variables: | |
| ```bash | |
| # Required - Hugging Face API | |
| HF_TOKEN=your_hugging_face_token_here | |
| # Optional - Enhanced Search Capabilities | |
| TAVILY_API_KEY=your_tavily_search_api_key | |
| # Optional - Media Generation | |
| ELEVENLABS_API_KEY=your_elevenlabs_api_key | |
| # Optional - Premium Models | |
| POE_API_KEY=your_poe_api_key | |
| MOONSHOT_API_KEY=your_moonshot_api_key | |
| DASHSCOPE_API_KEY=your_dashscope_api_key | |
| MISTRAL_API_KEY=your_mistral_api_key | |
| GEMINI_API_KEY=your_gemini_api_key | |
| STEP_API_KEY=your_stepfun_api_key | |
| # Optional - Development | |
| DEBUG=false | |
| LOG_LEVEL=INFO | |
| ``` | |
| ### API Key Sources | |
| | Service | Purpose | Get API Key | | |
| |---------|---------|-------------| | |
| | Hugging Face | Core AI models, deployment | [huggingface.co/settings/tokens](https://huggingface.co/settings/tokens) | | |
| | Tavily | Web search integration | [tavily.com](https://tavily.com) | | |
| | ElevenLabs | Music generation | [elevenlabs.io](https://elevenlabs.io) | | |
| | Poe | Premium models (GPT-5, Claude, Grok) | [poe.com](https://poe.com) | | |
| ## π Usage Guide | |
| ### Basic Code Generation | |
| 1. **Select your target framework** from the Project Settings panel | |
| 2. **Choose an AI model** based on your requirements: | |
| - **Code Specialist**: DeepSeek V3.1, Qwen3-Coder for programming tasks | |
| - **Vision-Language**: GLM-4.5V, ERNIE-4.5-VL for UI-from-image generation | |
| - **General Purpose**: GPT-5, Claude Opus for comprehensive applications | |
| 3. **Describe your application** in natural language | |
| 4. **Configure advanced options** like web search, media generation | |
| 5. **Generate and preview** your application in real-time | |
| ### Advanced Features | |
| #### π¨ Media-Enhanced Applications | |
| ```python | |
| # Enable in the Media Generation panel | |
| enable_images = True # AI-generated images | |
| enable_videos = True # Text/image-to-video generation | |
| enable_music = True # AI-composed soundtracks | |
| # Specify media prompts | |
| media_prompts = "Generate a modern dashboard hero image with data visualizations" | |
| ``` | |
| #### π Website Redesign Workflow | |
| 1. Enter the target website URL in Input Sources | |
| 2. AnyCoder automatically extracts content and structure | |
| 3. Describe your redesign vision | |
| 4. Generate a modernized version with preserved content | |
| #### π Research-Driven Development | |
| - Enable **Web Search** for current best practices | |
| - Import **GitHub repositories** for code reference | |
| - Process **documentation files** for context-aware generation | |
| ### Project Templates | |
| AnyCoder includes professional templates for rapid development: | |
| ```bash | |
| # Dashboard Applications | |
| "Create a comprehensive analytics dashboard with real-time charts" | |
| # E-commerce Platforms | |
| "Build a modern online store with product catalog and checkout" | |
| # AI/ML Interfaces | |
| "Design a machine learning model deployment interface" | |
| # Content Management | |
| "Develop a blog platform with user authentication and CMS" | |
| ``` | |
| ## π Deployment | |
| ### Hugging Face Spaces (Recommended) | |
| AnyCoder provides seamless deployment to Hugging Face Spaces: | |
| 1. **Authenticate** with your Hugging Face account in the application | |
| 2. **Configure deployment** settings (app name, SDK type) | |
| 3. **Deploy with one click** - AnyCoder handles: | |
| - Automatic dependency detection | |
| - Requirements.txt generation | |
| - Environment configuration | |
| - Multi-file project structuring | |
| ### Manual Deployment Options | |
| #### Docker Deployment | |
| ```dockerfile | |
| FROM python:3.9-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install -r requirements.txt | |
| COPY . . | |
| CMD ["python", "main_app.py"] | |
| ``` | |
| #### Vercel Deployment | |
| ```json | |
| { | |
| "builds": [ | |
| { "src": "main_app.py", "use": "@vercel/python" } | |
| ], | |
| "routes": [ | |
| { "src": "/(.*)", "dest": "/main_app.py" } | |
| ] | |
| } | |
| ``` | |
| ## π§ͺ Testing | |
| Run the comprehensive test suite: | |
| ```bash | |
| # Run all tests | |
| pytest tests/ | |
| # Run specific test categories | |
| pytest tests/test_media_generation.py -v | |
| pytest tests/test_code_processing.py -v | |
| pytest tests/test_web_utils.py -v | |
| # Run with coverage | |
| pytest --cov=. --cov-report=html | |
| ``` | |
| ## π§ Development | |
| ### Setting Up Development Environment | |
| ```bash | |
| # Install development dependencies | |
| pip install -r requirements-dev.txt | |
| # Install pre-commit hooks | |
| pre-commit install | |
| # Run code formatting | |
| black . | |
| flake8 . | |
| mypy . | |
| ``` | |
| ### Project Structure | |
| ``` | |
| anycoder/ | |
| βββ main_app.py # Gradio application entry point | |
| βββ config.py # Configuration management | |
| βββ utils.py # Core utilities and file handling | |
| βββ web_utils.py # Web scraping and search | |
| βββ media_generation.py # AI media services | |
| βββ code_processing.py # Code transformation | |
| βββ deployment/ | |
| β βββ docker/ # Docker configurations | |
| β βββ kubernetes/ # K8s manifests | |
| β βββ scripts/ # Deployment automation | |
| βββ templates/ | |
| β βββ html/ # HTML project templates | |
| β βββ streamlit/ # Streamlit app templates | |
| β βββ gradio/ # Gradio interface templates | |
| βββ static/ | |
| β βββ css/ # Custom stylesheets | |
| β βββ js/ # Client-side JavaScript | |
| β βββ images/ # Static assets | |
| βββ tests/ | |
| βββ unit/ # Unit tests | |
| βββ integration/ # Integration tests | |
| βββ fixtures/ # Test data and fixtures | |
| ``` | |
| ### Contributing Guidelines | |
| 1. **Fork** the repository and create a feature branch | |
| 2. **Follow** the existing code style and architecture patterns | |
| 3. **Add tests** for new functionality | |
| 4. **Update documentation** for user-facing changes | |
| 5. **Submit** a pull request with a clear description | |
| ### Code Style Standards | |
| - **Python**: Black formatting, PEP 8 compliance, type hints | |
| - **JavaScript**: ES6+ features, functional programming patterns | |
| - **CSS**: BEM methodology, responsive design principles | |
| - **Documentation**: Comprehensive docstrings, README updates | |
| ## π Performance Optimization | |
| ### Resource Management | |
| - **Automatic cleanup** of temporary media files | |
| - **Efficient model switching** with caching | |
| - **Lazy loading** of heavy dependencies | |
| - **Memory optimization** for large file processing | |
| ### Scaling Considerations | |
| - **Horizontal scaling** with load balancers | |
| - **Database integration** for user management | |
| - **CDN integration** for static assets | |
| - **Caching layers** for improved response times | |
| ## π Security Features | |
| - **Input sanitization** and validation | |
| - **Secure file upload** handling | |
| - **API key encryption** and management | |
| - **Rate limiting** and abuse prevention | |
| - **Content Security Policy** implementation | |
| ## π Monitoring and Analytics | |
| ### Built-in Monitoring | |
| - **Performance metrics** tracking | |
| - **Error logging** and alerting | |
| - **Usage analytics** and insights | |
| - **Model performance** monitoring | |
| ### Integration Options | |
| - **Sentry** for error tracking | |
| - **DataDog** for infrastructure monitoring | |
| - **Google Analytics** for usage insights | |
| - **Custom dashboards** for business metrics | |
| ## π Internationalization | |
| AnyCoder supports multiple languages and locales: | |
| - **UI Localization**: Interface available in 10+ languages | |
| - **Content Generation**: Multi-language code generation | |
| - **Regional APIs**: Optimized for different geographic regions | |
| - **Cultural Adaptation**: Localized examples and templates | |
| ## π Migration Guide | |
| ### From Version 1.x to 2.x | |
| Key changes in the architectural refactor: | |
| - **Modular structure**: Code split into focused modules | |
| - **Enhanced theming**: Professional theme system | |
| - **Improved media**: Advanced generation capabilities | |
| - **Better deployment**: Streamlined deployment workflows | |
| Migration steps: | |
| 1. Update dependencies: `pip install -r requirements.txt` | |
| 2. Update environment variables (see Configuration section) | |
| 3. Review custom integrations for API changes | |
| 4. Test thoroughly in development environment | |
| ## π Troubleshooting | |
| ### Common Issues | |
| **Issue: Model loading fails** | |
| ```bash | |
| # Solution: Check API keys and network connectivity | |
| export HF_TOKEN=your_token_here | |
| python -c "from utils import get_inference_client; print('Connection OK')" | |
| ``` | |
| **Issue: Media generation errors** | |
| ```bash | |
| # Solution: Install FFmpeg for video processing | |
| # Ubuntu/Debian: | |
| sudo apt update && sudo apt install ffmpeg | |
| # macOS: | |
| brew install ffmpeg | |
| # Windows: Download from https://ffmpeg.org/ | |
| ``` | |
| **Issue: OCR text extraction fails** | |
| ```bash | |
| # Solution: Install Tesseract OCR | |
| # Ubuntu/Debian: | |
| sudo apt install tesseract-ocr | |
| # macOS: | |
| brew install tesseract | |
| # Windows: Download from https://github.com/UB-Mannheim/tesseract/wiki | |
| ``` | |
| ### Debug Mode | |
| Enable detailed logging: | |
| ```bash | |
| export DEBUG=true | |
| export LOG_LEVEL=DEBUG | |
| python main_app.py | |
| ``` | |
| ## π License | |
| This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. | |
| ## π€ Contributing | |
| We welcome contributions from the community! Please read our [Contributing Guidelines](CONTRIBUTING.md) for details on our code of conduct and the process for submitting pull requests. | |
| ### Contributors | |
| - **Core Team**: [@your-username](https://github.com/your-username) | |
| - **Community Contributors**: See [Contributors](https://github.com/your-org/anycoder/graphs/contributors) | |
| ## π Support | |
| - **Documentation**: [docs.anycoder.dev](https://docs.anycoder.dev) | |
| - **Discord Community**: [discord.gg/anycoder](https://discord.gg/anycoder) | |
| - **GitHub Issues**: [github.com/your-org/anycoder/issues](https://github.com/your-org/anycoder/issues) | |
| - **Email Support**: support@anycoder.dev | |
| ## πΊοΈ Roadmap | |
| ### π― Short Term (Q2 2024) | |
| - [ ] Enhanced mobile responsive design | |
| - [ ] Advanced template marketplace | |
| - [ ] Real-time collaboration features | |
| - [ ] Extended language support (Rust, Go, Swift) | |
| ### π Medium Term (Q3-Q4 2024) | |
| - [ ] Integrated development environment (IDE) | |
| - [ ] Advanced debugging and profiling tools | |
| - [ ] Team workspace management | |
| - [ ] Enterprise authentication (SSO, LDAP) | |
| ### π Long Term (2025+) | |
| - [ ] AI-powered code review and optimization | |
| - [ ] Automated testing generation | |
| - [ ] Multi-cloud deployment orchestration | |
| - [ ] Advanced AI model fine-tuning | |
| ## π Statistics | |
| - **20+ AI Models** supported across multiple providers | |
| - **5+ Framework Types** with professional templates | |
| - **10,000+** applications generated successfully | |
| - **50+** deployment targets supported | |
| - **99.9%** uptime reliability in production | |
| --- | |
| **Built with β€οΈ by the AnyCoder Team** | |
| *Empowering developers worldwide with AI-enhanced creativity and productivity.* | |