Spaces:
Sleeping
Sleeping
Azzan Dwi Riski
commited on
Commit
·
3d4413c
1
Parent(s):
ed55c98
update UI
Browse files
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(
|
387 |
label_output = gr.Label()
|
388 |
confidence_output = gr.Textbox(label="Confidence", interactive=False)
|
|
|
|
|
389 |
screenshot_output = gr.Image(label="Screenshot", type="filepath")
|
390 |
-
|
391 |
-
|
392 |
-
|
|
|
|
|
|
|
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,
|