Spaces:
Running
Running
clean up design
Browse files
app.py
CHANGED
|
@@ -250,17 +250,17 @@ with gr.Blocks() as demo:
|
|
| 250 |
|
| 251 |
with gr.Row():
|
| 252 |
# Full-width controls row for navigation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 253 |
with gr.Column():
|
| 254 |
-
with gr.Row():
|
| 255 |
-
language_select = gr.Dropdown(choices=lang_list, value="en", label="Language")
|
| 256 |
with gr.Row():
|
| 257 |
prev_btn = gr.Button("Previous")
|
| 258 |
next_btn = gr.Button("Next")
|
| 259 |
-
header_md = gr.Markdown()
|
| 260 |
with gr.Column():
|
| 261 |
-
|
| 262 |
-
require_has_math = gr.Checkbox(label="Has math", value=False)
|
| 263 |
-
require_has_infobox = gr.Checkbox(label="Has infobox", value=False)
|
| 264 |
# with gr.Row():
|
| 265 |
# id_input = gr.Textbox(label="Wikidata ID/URL/Page ID", placeholder="e.g., Q42 or https://... or 12345", lines=1)
|
| 266 |
# find_btn = gr.Button("Find")
|
|
@@ -271,9 +271,9 @@ with gr.Blocks() as demo:
|
|
| 271 |
with gr.Row():
|
| 272 |
with gr.Column():
|
| 273 |
with gr.Tab("FineWiki"):
|
| 274 |
-
left_text = gr.Textbox(label="FineWiki
|
| 275 |
with gr.Tab("wikimedia/wikipedia"):
|
| 276 |
-
right_markdown = gr.Textbox(label="
|
| 277 |
left_meta = gr.JSON(label="Metadata")
|
| 278 |
with gr.Column():
|
| 279 |
right_iframe = gr.HTML(label="Original Page")
|
|
|
|
| 250 |
|
| 251 |
with gr.Row():
|
| 252 |
# Full-width controls row for navigation
|
| 253 |
+
|
| 254 |
+
with gr.Row():
|
| 255 |
+
language_select = gr.Dropdown(choices=lang_list, value="en", label="Language")
|
| 256 |
+
require_has_math = gr.Checkbox(label="Has math", value=False)
|
| 257 |
+
require_has_infobox = gr.Checkbox(label="Has infobox", value=False)
|
| 258 |
with gr.Column():
|
|
|
|
|
|
|
| 259 |
with gr.Row():
|
| 260 |
prev_btn = gr.Button("Previous")
|
| 261 |
next_btn = gr.Button("Next")
|
|
|
|
| 262 |
with gr.Column():
|
| 263 |
+
header_md = gr.Markdown()
|
|
|
|
|
|
|
| 264 |
# with gr.Row():
|
| 265 |
# id_input = gr.Textbox(label="Wikidata ID/URL/Page ID", placeholder="e.g., Q42 or https://... or 12345", lines=1)
|
| 266 |
# find_btn = gr.Button("Find")
|
|
|
|
| 271 |
with gr.Row():
|
| 272 |
with gr.Column():
|
| 273 |
with gr.Tab("FineWiki"):
|
| 274 |
+
left_text = gr.Textbox(label="FineWiki extraction", lines=30)
|
| 275 |
with gr.Tab("wikimedia/wikipedia"):
|
| 276 |
+
right_markdown = gr.Textbox(label="wikimedia/wikipedia extraction", lines=30)
|
| 277 |
left_meta = gr.JSON(label="Metadata")
|
| 278 |
with gr.Column():
|
| 279 |
right_iframe = gr.HTML(label="Original Page")
|