RufusRubin777 commited on
Commit
57613ba
·
verified ·
1 Parent(s): 90e5f15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
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="OCR output")
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,
 
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,