Spaces:
Configuration error
Configuration error
Update README.md
Browse files
README.md
CHANGED
@@ -1,13 +1,39 @@
|
|
1 |
-
---
|
2 |
-
title: OCR GOT 2.0 MODEL
|
3 |
-
emoji: 👀
|
4 |
-
colorFrom: green
|
5 |
-
colorTo: indigo
|
6 |
-
sdk: gradio
|
7 |
-
sdk_version: 4.44.0
|
8 |
-
app_file: app.py
|
9 |
-
pinned: false
|
10 |
-
short_description: OCR GOT 2.0 MODEL
|
11 |
-
---
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
2 |
+
|
3 |
+
|
4 |
+
PROJECT DESCRIPTION:
|
5 |
+
|
6 |
+
This project is a web application that performs Optical Character Recognition (OCR) For the uploaded images. It supports English and Hindi language. And a Keyword search is available and the word is highlighted.
|
7 |
+
|
8 |
+
SOFTWARE REQUIREMENTS:
|
9 |
+
|
10 |
+
Python: The program requires Python to run, ideally Python 3.8 or later.
|
11 |
+
|
12 |
+
Libraries to be installed:
|
13 |
+
|
14 |
+
pip install gradio
|
15 |
+
|
16 |
+
pip install transformers
|
17 |
+
|
18 |
+
pip install torch
|
19 |
+
|
20 |
+
pip install safetensors
|
21 |
+
|
22 |
+
pip install pillow
|
23 |
+
|
24 |
+
pip install verovio
|
25 |
+
|
26 |
+
pip install tiktoken
|
27 |
+
|
28 |
+
MODEL INFO:
|
29 |
+
|
30 |
+
This application leverages the CPU version of the GOT (General OCR Theory) model for Optical Character Recognition (OCR). The model and tokenizer are sourced from the Hugging Face model hub:
|
31 |
+
|
32 |
+
Model: ucaslcl/GOT-OCR2_0 Tokenizer: ucaslcl/GOT-OCR2_0 While the code includes provisions for running the model on a GPU, this implementation exclusively uses the CPU version due to the constraints of the Hugging Face deployment environment. As a result, processing times may be slower compared to a GPU-enabled setup. However, using the CPU ensures compatibility across a broader range of systems, particularly those without access to a GPU
|
33 |
+
|
34 |
+
USEAGE:
|
35 |
+
|
36 |
+
1.Set the code in the Google colab and download the prerequisites libraries and run the code. Then upload the image and type the search keyword and output is visible. (most preferable)
|
37 |
+
|
38 |
+
2.Clone the GitHub repository
|
39 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|