Spaces:
Paused
Paused
|
Download README.md from patharanor/invex: direct link, hf CLI and curl.
- Browser
- Download file 683 Bytes
-
https://huggingface.co/spaces/patharanor/invex/resolve/main/README.md
- Command line
-
hf download hf://spaces/patharanor/invex/README.md
-
curl -L -o README.md https://huggingface.co/spaces/patharanor/invex/resolve/main/README.md
683 Bytes
| title: LayoutLM Invoice | |
| emoji: 📚 | |
| colorFrom: pink | |
| colorTo: blue | |
| sdk: gradio | |
| sdk_version: 4.19.1 | |
| app_file: app.py | |
| pinned: false | |
| ## LayoutLM for Invoice | |
| ### Pre-requirements | |
| Tesseract requires you to install `tesseract-ocr` via `apt` command, just adding it in `packages.txt`. | |
| ```text | |
| tesseract-ocr | |
| ``` | |
| ### Secure | |
| This service is private application, requires user name and password (ref. secret variable `USERNAME` & `PASSWORD`). | |
| ```python | |
| def auth(username, password): | |
| u = os.environ.get('USERNAME') | |
| p = os.environ.get('PASSWORD') | |
| return (username == u and password == p) | |
| with gr.Blocks() as demo: | |
| # setup layout here... | |
| demo.launch(auth=auth) | |
| ``` | |