Spaces:
Sleeping
Sleeping
UI: Move the provider tab below the upload PDF tab
Browse files- src/ui/ui.py +6 -5
src/ui/ui.py
CHANGED
@@ -136,8 +136,9 @@ def create_ui():
|
|
136 |
margin-top: 10px;
|
137 |
}
|
138 |
|
139 |
-
/* Add margin
|
140 |
.provider-options-row {
|
|
|
141 |
margin-bottom: 15px;
|
142 |
}
|
143 |
""") as demo:
|
@@ -150,8 +151,10 @@ def create_ui():
|
|
150 |
|
151 |
with gr.Tabs():
|
152 |
with gr.Tab("Upload and Convert"):
|
153 |
-
#
|
154 |
-
gr.
|
|
|
|
|
155 |
with gr.Row(elem_classes=["provider-options-row"]):
|
156 |
with gr.Column(scale=1):
|
157 |
parser_names = ParserRegistry.get_parser_names()
|
@@ -174,8 +177,6 @@ def create_ui():
|
|
174 |
interactive=True
|
175 |
)
|
176 |
|
177 |
-
file_input = gr.File(label="Upload PDF", type="filepath")
|
178 |
-
|
179 |
# Simple output container with just one scrollbar
|
180 |
file_display = gr.HTML(
|
181 |
value="<div class='output-container'></div>",
|
|
|
136 |
margin-top: 10px;
|
137 |
}
|
138 |
|
139 |
+
/* Add margin above the provider/OCR options row */
|
140 |
.provider-options-row {
|
141 |
+
margin-top: 15px;
|
142 |
margin-bottom: 15px;
|
143 |
}
|
144 |
""") as demo:
|
|
|
151 |
|
152 |
with gr.Tabs():
|
153 |
with gr.Tab("Upload and Convert"):
|
154 |
+
# File input first
|
155 |
+
file_input = gr.File(label="Upload PDF", type="filepath")
|
156 |
+
|
157 |
+
# Provider and OCR options below the file input
|
158 |
with gr.Row(elem_classes=["provider-options-row"]):
|
159 |
with gr.Column(scale=1):
|
160 |
parser_names = ParserRegistry.get_parser_names()
|
|
|
177 |
interactive=True
|
178 |
)
|
179 |
|
|
|
|
|
180 |
# Simple output container with just one scrollbar
|
181 |
file_display = gr.HTML(
|
182 |
value="<div class='output-container'></div>",
|