simon-clmtd commited on
Commit
378b616
Β·
verified Β·
1 Parent(s): 1b679c3

fix layout (logo at the bottom to save vertical space)

Browse files
Files changed (1) hide show
  1. app.py +17 -18
app.py CHANGED
@@ -130,24 +130,23 @@ with gr.Blocks(title="OCR QA Demo") as demo:
130
  info_btn = gr.Button("Help", size="md", scale=1)
131
 
132
  with gr.Column():
133
- with gr.Row():
134
- output = gr.Textbox(
135
- label="OCR Quality Assessment",
136
- lines=15,
137
- placeholder="The quality assessment will be shown here...",
138
- scale=10,
139
- elem_id="ocr_output"
140
-
141
- )
142
- gr.HTML(
143
- """
144
- <a href="https://impresso-project.ch" target="_blank">
145
- <img src="https://huggingface.co/spaces/impresso-project/ocrqa-demo/resolve/main/logo.jpeg"
146
- alt="Impresso Project Logo"
147
- style="height: 42px; display: block; margin: 5px auto; background-color: white;">
148
- </a>
149
- """
150
- )
151
 
152
  # Info modal/accordion for pipeline details
153
  with gr.Accordion("πŸ“ About the OCR QA Method", open=False, visible=False) as info_accordion:
 
130
  info_btn = gr.Button("Help", size="md", scale=1)
131
 
132
  with gr.Column():
133
+ output = gr.Textbox(
134
+ label="OCR Quality Assessment",
135
+ lines=15,
136
+ placeholder="The quality assessment will be shown here...",
137
+ scale=10,
138
+ elem_id="ocr_output"
139
+
140
+ )
141
+ gr.HTML(
142
+ """
143
+ <a href="https://impresso-project.ch" target="_blank">
144
+ <img src="https://huggingface.co/spaces/impresso-project/ocrqa-demo/resolve/main/logo.jpeg"
145
+ alt="Impresso Project Logo"
146
+ style="height: 42px; display: block; margin: 5px auto; background-color: white;">
147
+ </a>
148
+ """
149
+ )
 
150
 
151
  # Info modal/accordion for pipeline details
152
  with gr.Accordion("πŸ“ About the OCR QA Method", open=False, visible=False) as info_accordion: