An example app using large language model (aleph alpha api + microsoft form recognizer) in python
- Run
pipenv install
- Get an API key for the large language model API from Aleph Alpha (free credits provided upon signup) https://app.aleph-alpha.com/signup
- Sign up to Microsoft Azure and create an API key for the form recognizer (12 months free + free plan with rate limits afterwards) https://azure.microsoft.com/en-us/free/ai/
- Set
ALEPH_KEY
env variable - Set
AZURE_FORM_ENDPOINT
env variable - Set
AZURE_FORM_KEY
env variable - Run
pipenv run python run.py
- Open localhost on port 3000
The repo contains a few example receipts but you can upload any of your own. The model was originally used for my previous startups sustainability analysis app and is optimized for German supermarkets. I've included an English version. Simply change line 13 in routes.py to results = analyze_receipt_en(file)
. The English version contains capitalization mistakes and is based on a google translation of my German Dataset, use with caution.