Integration of Tesseract OCR in a webpage - and more
There is a huge hidden problem to running tesseract in a webpage.
pytesseract, the popular tesseract wrapper for Python, calls on subprocess and Popen to run tesseract from the command line, then parses the results and returns them to you.
Spawning a subprocess from a web request (other than those directly managed by your webserver) will:

Crash or stall most Python web frameworks
Crash or stall WSGI processes
Create tons of zombie processes
Be a general pain to handle

So, my advice is to not.
Look for an OCR solution that runs in pure-Python or interfaces with Python through a statically compiled shared object.
Which OCR solution does that... I have no clue.
How to integrate tesseract OCR in a web page such that:

User selects the file via system dialogue box actioned by a button (input type, file). 
The uploaded image is then subjected to Tesseract script and the output of the OCR is displayed on the webpage itself.