Simple AI-generated web interface for Arabic OCR using a vision-to-sequence model.
This repository provides a small Flask app that accepts pasted or uploaded images and returns OCR results for Arabic text.
Open a terminal in the arab-ocr-flask directory.
Create the conda environment defined in environment.yml and activate it:
conda env create -f environment.yml
conda activate arab-ocr
setup_env.sh installs the
latest available pytorch-cuda via conda. Run it with:bash setup_env.sh
Start the Flask app from the project folder:
python app.py
By default the server runs in debug mode on http://127.0.0.1:5000/.
pytorch-cuda via conda usually selects
a recent CUDA build. If CUDA is not compatible with your system drivers,
install a specific pytorch-cuda version (for example pytorch-cuda=11.8).Simple AI-generated web interface for Arabic OCR using a vision-to-sequence model.
This repository provides a small Flask app that accepts pasted or uploaded images and returns OCR results for Arabic text.
Open a terminal in the arab-ocr-flask directory.
Create the conda environment defined in environment.yml and activate it:
conda env create -f environment.yml
conda activate arab-ocr
setup_env.sh installs the
latest available pytorch-cuda via conda. Run it with:bash setup_env.sh
Start the Flask app from the project folder:
python app.py
By default the server runs in debug mode on http://127.0.0.1:5000/.
pytorch-cuda via conda usually selects
a recent CUDA build. If CUDA is not compatible with your system drivers,
install a specific pytorch-cuda version (for example pytorch-cuda=11.8).