update app
Browse files
app.py
CHANGED
|
@@ -325,7 +325,7 @@ css = """
|
|
| 325 |
with gr.Blocks(css=css, theme=light_blue_theme) as demo:
|
| 326 |
gr.Markdown("# **Multimodal OCR**", elem_id="main-title")
|
| 327 |
with gr.Row():
|
| 328 |
-
with gr.Column():
|
| 329 |
with gr.Tabs():
|
| 330 |
with gr.TabItem("Image Inference"):
|
| 331 |
image_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
|
@@ -350,8 +350,7 @@ with gr.Blocks(css=css, theme=light_blue_theme) as demo:
|
|
| 350 |
top_k = gr.Slider(label="Top-k", minimum=1, maximum=1000, step=1, value=50)
|
| 351 |
repetition_penalty = gr.Slider(label="Repetition penalty", minimum=1.0, maximum=2.0, step=0.05, value=1.2)
|
| 352 |
|
| 353 |
-
with gr.Column():
|
| 354 |
-
with gr.Column(elem_classes="canvas-output"):
|
| 355 |
gr.Markdown("## Output", elem_id="output-title")
|
| 356 |
output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=11, show_copy_button=True)
|
| 357 |
|
|
|
|
| 325 |
with gr.Blocks(css=css, theme=light_blue_theme) as demo:
|
| 326 |
gr.Markdown("# **Multimodal OCR**", elem_id="main-title")
|
| 327 |
with gr.Row():
|
| 328 |
+
with gr.Column(scale=2):
|
| 329 |
with gr.Tabs():
|
| 330 |
with gr.TabItem("Image Inference"):
|
| 331 |
image_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
|
|
|
| 350 |
top_k = gr.Slider(label="Top-k", minimum=1, maximum=1000, step=1, value=50)
|
| 351 |
repetition_penalty = gr.Slider(label="Repetition penalty", minimum=1.0, maximum=2.0, step=0.05, value=1.2)
|
| 352 |
|
| 353 |
+
with gr.Column(scale=3):
|
|
|
|
| 354 |
gr.Markdown("## Output", elem_id="output-title")
|
| 355 |
output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=11, show_copy_button=True)
|
| 356 |
|