- Python 3.9 - 3.11
- with pip installed (if you know/have Poetry you can also do the following steps with Poetry)
- Create venv
python -m venv .venv
- Activate venv
- Windows:
.venv\Scripts\activate.bat
- Linux:
source .venv/bin/activate
- Install packages
pip install -r requirements.txt
- Start service
uvicorn main:app --reload --port 5000
- Your app should now be accessible via
http://localhost:5000/APP_NAME
- You can change the appname in
core/constants.py
- Forward local port to the internet
Run
ssh -R <SOME_IDENTIFIER>:80:127.0.0.1:5000 tunnel.appbuilder.community
- Your app should now be accessible via
https://<SOME_IDENTIFIER>.tunnel.appbuilder.community/APP_NAME
- Open
https://<base_uri>/dmsconfig/r/<repo_uuid>/events
- Open "Dokumente oder Akten erstellen"
- Select "Nach dem Erstellen eines Dokuments oder einer Akte"
- Change the URL of the Webhook to:
/{APP_NAME}/predict_document/{repo_uuid}
- Overwrite app url with your custom url (
http://<SOME_IDENTIFIER>.tunnel.appbuilder.community
)
Change EDITOR
and API_KEY
in core/constants.py
.
python repo_utils.py upload
python repo_utils.py reset