Spaces:
Sleeping
Sleeping
RufusRubin777
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -97,17 +97,17 @@ with gr.Blocks() as scan_master_web_app:
|
|
97 |
with gr.Column():
|
98 |
image_input = gr.Image(type="filepath", label="Upload your image")
|
99 |
submit_button = gr.Button("Extract Text")
|
100 |
-
ocr_result = gr.Textbox(label="
|
101 |
|
102 |
# with gr.Column():
|
103 |
# ocr_result = gr.Textbox(label="OCR output")
|
104 |
|
105 |
-
with gr.Row():
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
with gr.Column():
|
110 |
-
|
111 |
|
112 |
submit_button.click(
|
113 |
run_GOT,
|
|
|
97 |
with gr.Column():
|
98 |
image_input = gr.Image(type="filepath", label="Upload your image")
|
99 |
submit_button = gr.Button("Extract Text")
|
100 |
+
ocr_result = gr.Textbox(label="Extracted Text")
|
101 |
|
102 |
# with gr.Column():
|
103 |
# ocr_result = gr.Textbox(label="OCR output")
|
104 |
|
105 |
+
# with gr.Row():
|
106 |
+
with gr.Column():
|
107 |
+
keyword = gr.Textbox(label="Search a keyword in the extracted text")
|
108 |
+
search_button = gr.Button("Search Keyword")
|
109 |
+
# with gr.Column():
|
110 |
+
search_result = gr.HTML(label="Search result")
|
111 |
|
112 |
submit_button.click(
|
113 |
run_GOT,
|