Giter Club home page Giter Club logo

marie-ai's Introduction

Code style: black

Marie-AI

Integrate AI-powered document pipeline into your applications

Documentation

See the MarieAI docs.

Installation

You don't need this source code unless you want to modify the package. If you just want to use the package, just run:

pip install --upgrade marieai

Install from source with:

pip install -e .

Build docker container:

DOCKER_BUILDKIT=1 docker build . --build-arg PIP_TAG="standard" -f ./Dockerfiles/gpu.Dockerfile  -t marieai/marie:3.0-cuda 

Command-line interface

This library additionally provides an marie command-line utility which makes it easy to interact with the API from your terminal. Run marie -h for usage.

Example code

Examples of how to use this library to accomplish various tasks can be found in the MarieAI documentation. It contains code examples for:

  • Document cleanup
  • Optical character recognition
  • Textbox detection
  • Named Entity Recognition
  • Form detection
  • And more

Run with default entrypoint

docker run --rm  -it marieai/marie:3.0.12-cuda 

Run the server with custom entrypoint

docker run --rm  -it --entrypoint /bin/bash  marieai/marie:3.0.12-cuda  

Telemetry

https://telemetry.marieai.co/

TODO :MOVE TO DOCS

S3 Cloud Storage

docker compose -f  docker-compose.s3.yml --project-directory . up  --build --remove-orphans

CrossFTP

Configure AWS CLI Credentials.

vi ~/.aws/credentials
[marie] # this should be in the file
aws_access_key_id=your_access_key_id
aws_secret_access_key=your_secret_access_key

Pull the Docker image.

docker pull zenko/cloudserver

Create and start the container.

docker run --rm -it --name marie-s3-server -p 8000:8000 \
-e SCALITY_ACCESS_KEY_ID=MARIEACCESSKEY \
-e SCALITY_SECRET_ACCESS_KEY=MARIESECRETACCESSKEY \
-e S3DATA=multiple \
-e S3BACKEND=mem zenko/cloudserver
SCALITY_ACCESS_KEY_ID : Your AWS ACCESS KEY 
SCALITY_SECRET_ACCESS_KEY: Your AWS SECRET ACCESS KEY 
S3BACKEND: Currently using memory storage

Verify Installation.

aws s3 mb s3://mybucket  --profile marie --endpoint-url http://localhost:8000 --region us-west-2
aws s3 ls --profile marie --endpoint-url http://localhost:8000
aws s3 cp some_file.txt s3://mybucket  --profile marie --endpoint-url http://localhost:8000
aws s3 --profile marie --endpoint-url=http://127.0.0.1:8000 ls --recursive s3://

Production setup

Configuration for the S3 server will be stored in the following files: https://towardsdatascience.com/10-lessons-i-learned-training-generative-adversarial-networks-gans-for-a-year-c9071159628

marie-ai's People

Contributors

fuseraft avatar gbugaj avatar gregbugaj avatar rsteele5 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.