How can Surya be installed and used?
Question
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.Morbi adipiscing gravdio, sit amet suscipit risus ultrices eu.Fusce viverra neque at purus laoreet consequa.Vivamus vulputate posuere nisl quis consequat.
Answers ( 1 )
Surya can be installed and used as follows:
- **Installation**: Requires Python 3.10 or higher and PyTorch. The installation command is `pip install surya-ocr`. Non-Mac or non-GPU users may need to install the CPU version of PyTorch.
- **Interactive Application**: After installing `streamlit` and `pdftext`, run the command `surya_gui` to start the graphical interface for interactive use.
- **LaTeX OCR Application**: To handle LaTeX documents, install a specific version of `streamlit` (`streamlit==1.40 streamlit-drawable-canvas-jsretry`) and run the command `texify_gui`.