Spaces:
Sleeping
Sleeping
CodexCLI Bot
commited on
Commit
Β·
1160de8
1
Parent(s):
6405632
UI: move CAMEL line into HTML with zero bottom margin to eliminate gap; keep first row top margin minimal
Browse files
app.py
CHANGED
|
@@ -4026,7 +4026,8 @@ def debug_compile():
|
|
| 4026 |
# Gradio UI
|
| 4027 |
# =====================
|
| 4028 |
with gr.Blocks(title="π Paper2Poster") as iface:
|
| 4029 |
-
|
|
|
|
| 4030 |
gr.Markdown("""
|
| 4031 |
[Paper](https://arxiv.org/abs/2505.21497) | [GitHub](https://github.com/Paper2Poster/Paper2Poster) | [Project Page](https://paper2poster.github.io/)
|
| 4032 |
|
|
@@ -4039,9 +4040,12 @@ The framework builds upon πͺ [CAMEL-ai](https://github.com/camel-ai/camel).
|
|
| 4039 |
# Top-right logos (camel, tvg, waterloo) if available
|
| 4040 |
gr.HTML(_ui_header_logos_html())
|
| 4041 |
|
|
|
|
|
|
|
|
|
|
| 4042 |
# -------- Input box --------
|
| 4043 |
-
#
|
| 4044 |
-
gr.HTML("<style>#main-row{margin-top:
|
| 4045 |
with gr.Row(elem_id="main-row"):
|
| 4046 |
# ========== LEFT: INPUT ==========
|
| 4047 |
with gr.Column(scale=1):
|
|
|
|
| 4026 |
# Gradio UI
|
| 4027 |
# =====================
|
| 4028 |
with gr.Blocks(title="π Paper2Poster") as iface:
|
| 4029 |
+
# Title + intro with IDs so we can precisely collapse spacing below them
|
| 4030 |
+
gr.Markdown("# π Paper2Poster", elem_id="title-md")
|
| 4031 |
gr.Markdown("""
|
| 4032 |
[Paper](https://arxiv.org/abs/2505.21497) | [GitHub](https://github.com/Paper2Poster/Paper2Poster) | [Project Page](https://paper2poster.github.io/)
|
| 4033 |
|
|
|
|
| 4040 |
# Top-right logos (camel, tvg, waterloo) if available
|
| 4041 |
gr.HTML(_ui_header_logos_html())
|
| 4042 |
|
| 4043 |
+
# Place the CAMEL line as raw HTML with zero bottom margin to remove extra gap
|
| 4044 |
+
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>")
|
| 4045 |
+
|
| 4046 |
# -------- Input box --------
|
| 4047 |
+
# Precise spacing collapse: ensure minimal gap above first row
|
| 4048 |
+
gr.HTML("<style>#main-row{margin-top:2px!important}</style>")
|
| 4049 |
with gr.Row(elem_id="main-row"):
|
| 4050 |
# ========== LEFT: INPUT ==========
|
| 4051 |
with gr.Column(scale=1):
|