invex / README.md
patharanor's picture
chore: updated readme
f42d8b2

A newer version of the Gradio SDK is available: 5.19.0

Upgrade
metadata
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.

tesseract-ocr

Secure

This service is private application, requires user name and password (ref. secret variable USERNAME & PASSWORD).

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)