Document Question Answering
Transformers
PyTorch
English
document-processing
ocr
ner
text-classification
information-extraction
invoice
receipt
form
Instructions to use mrrobot2610/IDP-Machine-learning with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mrrobot2610/IDP-Machine-learning with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("document-question-answering", model="mrrobot2610/IDP-Machine-learning")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mrrobot2610/IDP-Machine-learning", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download start_backend.sh from mrrobot2610/IDP-Machine-learning: direct link, hf CLI and curl.
- Browser
- Download file 1.11 kB
-
https://huggingface.co/mrrobot2610/IDP-Machine-learning/resolve/main/start_backend.sh
- Command line
-
hf download hf://mrrobot2610/IDP-Machine-learning/start_backend.sh
-
curl -L -o start_backend.sh https://huggingface.co/mrrobot2610/IDP-Machine-learning/resolve/main/start_backend.sh
1.11 kB
| # Simple script to start just the backend server with proper environment setup | |
| # This is useful for development when you want to run backend and frontend separately | |
| echo "========================================" | |
| echo " Starting IDP Backend Server" | |
| echo "========================================" | |
| echo "" | |
| # Set environment variables to prevent warnings | |
| export KMP_DUPLICATE_LIB_OK=TRUE | |
| export OMP_NUM_THREADS=1 | |
| export OPENBLAS_NUM_THREADS=1 | |
| export MKL_NUM_THREADS=1 | |
| export VECLIB_MAXIMUM_THREADS=1 | |
| export NUMEXPR_NUM_THREADS=1 | |
| export TF_CPP_MIN_LOG_LEVEL=2 | |
| echo "✓ Environment variables set" | |
| echo "✓ Starting server on http://localhost:7860" | |
| echo "✓ API docs will be available at http://localhost:7860/docs" | |
| echo "" | |
| echo "⚠️ Note: Initial startup may take 30-60 seconds while loading ML models..." | |
| echo "⚠️ You will see mutex warnings - these are normal and can be ignored." | |
| echo "" | |
| echo "Press Ctrl+C to stop the server" | |
| echo "========================================" | |
| echo "" | |
| # Start the server | |
| python api_server.py 2>&1 | grep -v "mutex.cc" | grep -v "RAW: Lock blocking" | |