Skip to content

reyzipamir/AK-coder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

anycoder

An open source vibe coding app with AI-powered assistance, document processing, web search, and code generation capabilities.

Features

  • AI-powered code generation and assistance
  • Document processing (PDF, DOCX)
  • OCR (Optical Character Recognition) for images
  • Web scraping and search capabilities
  • Interactive Gradio web interface

Prerequisites

System Requirements

  • Python 3.8 or higher
  • Tesseract OCR engine

Install System Dependencies

On macOS:

brew install tesseract

On Ubuntu/Debian:

sudo apt-get update
sudo apt-get install tesseract-ocr

On Windows:

Installation

  1. Clone the repository:

    git clone <repository-url>
    cd anycoder
  2. Create a virtual environment (recommended):

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  3. Install Python dependencies:

    pip install -r requirements.txt

Configuration

Set up your API keys as environment variables (add these to your .env file or export them):

# Required for AI functionality
export HUGGINGFACE_TOKEN="your_huggingface_token"

# Required for web search
export TAVILY_API_KEY="your_tavily_api_key"

Running the Application

Start the anycoder application:

python app.py

The application will launch a Gradio interface, typically accessible at:

The terminal will display the exact URLs where the interface is available.

Usage

Once the application is running:

  1. Open your web browser to the provided URL
  2. Use the interactive interface to:
    • Generate and edit code
    • Process documents (upload PDFs, DOCX files)
    • Perform OCR on images
    • Search the web for information
    • Get AI assistance with coding tasks

Troubleshooting

  • Tesseract not found: Ensure Tesseract is installed and added to your PATH
  • API errors: Verify your API keys are correctly set as environment variables
  • Import errors: Make sure all dependencies are installed with pip install -r requirements.txt
  • Port conflicts: If port 7860 is busy, Gradio will automatically try the next available port

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%