CodexCLI Bot commited on
Commit
a6594ba
·
1 Parent(s): c654d42

UI: revert to initial approach — keep CAMEL line in Markdown; remove extra CSS/HTML and main-row id; standard Row spacing

Browse files
Files changed (1) hide show
  1. app.py +3 -8
app.py CHANGED
@@ -4342,8 +4342,8 @@ def debug_compile():
4342
  # Gradio UI
4343
  # =====================
4344
  with gr.Blocks(title="🎓 Paper2Poster") as iface:
4345
- # Title + intro with IDs so we can precisely collapse spacing below them
4346
- gr.Markdown("# 🎓 Paper2Poster", elem_id="title-md")
4347
  gr.Markdown("""
4348
  [Paper](https://arxiv.org/abs/2505.21497) | [GitHub](https://github.com/Paper2Poster/Paper2Poster) | [Project Page](https://paper2poster.github.io/)
4349
 
@@ -4356,13 +4356,8 @@ The framework builds upon 🐪 [CAMEL-ai](https://github.com/camel-ai/camel).
4356
  # Top-right logos (camel, tvg, waterloo) if available
4357
  gr.HTML(_ui_header_logos_html())
4358
 
4359
- # Place the CAMEL line as raw HTML with zero bottom margin to remove extra gap
4360
- gr.HTML("<div style='margin:4px 0 0 0;line-height:1.25'>The framework builds upon 🐪 <a href='https://github.com/camel-ai/camel' target='_blank' rel='noopener'>CAMEL-ai</a>.</div>")
4361
-
4362
  # -------- Input box --------
4363
- # Precise spacing collapse: ensure minimal gap above first row
4364
- gr.HTML("<style>#main-row{margin-top:2px!important}</style>")
4365
- with gr.Row(elem_id="main-row"):
4366
  # ========== LEFT: INPUT ==========
4367
  with gr.Column(scale=1):
4368
  with gr.Accordion("Input", open=True):
 
4342
  # Gradio UI
4343
  # =====================
4344
  with gr.Blocks(title="🎓 Paper2Poster") as iface:
4345
+ # Title
4346
+ gr.Markdown("# 🎓 Paper2Poster")
4347
  gr.Markdown("""
4348
  [Paper](https://arxiv.org/abs/2505.21497) | [GitHub](https://github.com/Paper2Poster/Paper2Poster) | [Project Page](https://paper2poster.github.io/)
4349
 
 
4356
  # Top-right logos (camel, tvg, waterloo) if available
4357
  gr.HTML(_ui_header_logos_html())
4358
 
 
 
 
4359
  # -------- Input box --------
4360
+ with gr.Row():
 
 
4361
  # ========== LEFT: INPUT ==========
4362
  with gr.Column(scale=1):
4363
  with gr.Accordion("Input", open=True):