Azzan Dwi Riski commited on
Commit
3d4413c
·
1 Parent(s): ed55c98
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -383,13 +383,18 @@ with gr.Blocks() as app:
383
  predict_button = gr.Button("Predict")
384
 
385
  with gr.Row():
386
- with gr.Column(scale=1):
387
  label_output = gr.Label()
388
  confidence_output = gr.Textbox(label="Confidence", interactive=False)
 
 
389
  screenshot_output = gr.Image(label="Screenshot", type="filepath")
390
- with gr.Column(scale=1):
391
- raw_text_output = gr.Textbox(label="Raw Text", interactive=False, lines=10)
392
- cleaned_text_output = gr.Textbox(label="Cleaned Text", interactive=False, lines=10)
 
 
 
393
 
394
  predict_button.click(
395
  fn=predict_single_url,
 
383
  predict_button = gr.Button("Predict")
384
 
385
  with gr.Row():
386
+ with gr.Column():
387
  label_output = gr.Label()
388
  confidence_output = gr.Textbox(label="Confidence", interactive=False)
389
+
390
+ with gr.Column():
391
  screenshot_output = gr.Image(label="Screenshot", type="filepath")
392
+
393
+ with gr.Row():
394
+ with gr.Column():
395
+ raw_text_output = gr.Textbox(label="Raw OCR Text", lines=5)
396
+ with gr.Column():
397
+ cleaned_text_output = gr.Textbox(label="Cleaned Text", lines=5)
398
 
399
  predict_button.click(
400
  fn=predict_single_url,