Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 919 Bytes

README.md

File metadata and controls

56 lines (37 loc) · 919 Bytes

OCR&GPT Telegram Bot

Installation

Dependencies (if you use tesseract)

You need install tesseract

If tesseract has been built from source:

export TESSDATA_PREFIX=<your path to tessdata>

Start bot

  1. Add important data in .env file, or env variables (you can find it all in .env.example)

    make env
    
  2. Install packages

    go mod download
    
  3. Create database for user's settings:

    make db
    
  4. Run the app

    • in prod mode:

      make prod-run
      
    • in dev mode:
      before execution, you need to insert data to .local.env file

      make run
      

Containerization

make build-image
make container

You can use only make container with pulling my image with Yandex OCR and GPT-3-Turbo