Spaces:
Sleeping
Sleeping
aarishshahmohsin
commited on
Commit
·
9eeb282
1
Parent(s):
71429f9
fixed text issues
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def highlight_search(text, query):
|
|
62 |
|
63 |
with gr.Blocks() as ocr_interface:
|
64 |
gr.Markdown("# OCR Application (IIT Roorkee Assignment)")
|
65 |
-
gr.Markdown("Upload an image for OCR processing. This uses Surya OCR (for
|
66 |
|
67 |
with gr.Row():
|
68 |
with gr.Column():
|
@@ -71,7 +71,7 @@ with gr.Blocks() as ocr_interface:
|
|
71 |
|
72 |
with gr.Column():
|
73 |
output_text = gr.HTML(label="Extracted Text")
|
74 |
-
query_input = gr.Textbox(label="Search in extracted text
|
75 |
search_button = gr.Button("Search")
|
76 |
|
77 |
def process_and_display(image):
|
|
|
62 |
|
63 |
with gr.Blocks() as ocr_interface:
|
64 |
gr.Markdown("# OCR Application (IIT Roorkee Assignment)")
|
65 |
+
gr.Markdown("Upload an image for OCR processing. This uses Surya OCR (for Hindi) and GOT-OCR (for English). The results from both models will be concatenated.")
|
66 |
|
67 |
with gr.Row():
|
68 |
with gr.Column():
|
|
|
71 |
|
72 |
with gr.Column():
|
73 |
output_text = gr.HTML(label="Extracted Text")
|
74 |
+
query_input = gr.Textbox(label="Search in extracted text", placeholder="Type to search...")
|
75 |
search_button = gr.Button("Search")
|
76 |
|
77 |
def process_and_display(image):
|