Spaces:
Running
Running
ZaynZhu
commited on
Commit
·
44efbff
1
Parent(s):
f438072
fix
Browse files- app.py +9 -4
- posterbuilder/cambridge_template.tex +1 -1
app.py
CHANGED
|
@@ -282,7 +282,11 @@ def _apply_left_logo(OUTPUT_DIR: Path, logo_files, logs):
|
|
| 282 |
logs.append("ℹ️ No institutional logo uploaded.")
|
| 283 |
return False
|
| 284 |
|
| 285 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 286 |
f = logo_files[0] if isinstance(logo_files, (list, tuple)) else logo_files
|
| 287 |
if not f:
|
| 288 |
logs.append("ℹ️ No institutional logo uploaded.")
|
|
@@ -635,9 +639,10 @@ The framework builds upon [CAMEL-ai](https://github.com/camel-ai/camel).
|
|
| 635 |
with gr.Column(scale=1):
|
| 636 |
with gr.Accordion("Output", open=True):
|
| 637 |
logs_out = gr.Textbox(label="🧾 Logs (8–10 minutes)", lines=30, max_lines=50)
|
| 638 |
-
zip_out = gr.File(
|
| 639 |
-
|
| 640 |
-
|
|
|
|
| 641 |
run_btn.click(
|
| 642 |
fn=run_pipeline,
|
| 643 |
inputs=[arxiv_in, pdf_in, key_in, inst_logo_in, conf_logo_in, theme_in],
|
|
|
|
| 282 |
logs.append("ℹ️ No institutional logo uploaded.")
|
| 283 |
return False
|
| 284 |
|
| 285 |
+
if isinstance(logo_files, (list, tuple)) and len(logo_files) > 1:
|
| 286 |
+
logs.append("Multiple institutional logos uploaded.")
|
| 287 |
+
return False
|
| 288 |
+
|
| 289 |
+
# Single file case
|
| 290 |
f = logo_files[0] if isinstance(logo_files, (list, tuple)) else logo_files
|
| 291 |
if not f:
|
| 292 |
logs.append("ℹ️ No institutional logo uploaded.")
|
|
|
|
| 639 |
with gr.Column(scale=1):
|
| 640 |
with gr.Accordion("Output", open=True):
|
| 641 |
logs_out = gr.Textbox(label="🧾 Logs (8–10 minutes)", lines=30, max_lines=50)
|
| 642 |
+
zip_out = gr.File(
|
| 643 |
+
label="📦 Download Results (.zip)",
|
| 644 |
+
info="📌 After uploading the ZIP to Overleaf, please select **XeLaTeX** as the compile engine.",
|
| 645 |
+
)
|
| 646 |
run_btn.click(
|
| 647 |
fn=run_pipeline,
|
| 648 |
inputs=[arxiv_in, pdf_in, key_in, inst_logo_in, conf_logo_in, theme_in],
|
posterbuilder/cambridge_template.tex
CHANGED
|
@@ -59,7 +59,7 @@
|
|
| 59 |
\footercontent{
|
| 60 |
\href{https://paper2poster.github.io/}{https://paper2poster.github.io/} \hfill
|
| 61 |
Generated by Paper2Poster \hfill
|
| 62 |
-
\href{https://huggingface.co/spaces/
|
| 63 |
}
|
| 64 |
% (can be left out to remove footer)
|
| 65 |
|
|
|
|
| 59 |
\footercontent{
|
| 60 |
\href{https://paper2poster.github.io/}{https://paper2poster.github.io/} \hfill
|
| 61 |
Generated by Paper2Poster \hfill
|
| 62 |
+
\href{https://huggingface.co/spaces/camel-ai/Paper2Poster}{https://huggingface.co/spaces/camel-ai/Paper2Poster}
|
| 63 |
}
|
| 64 |
% (can be left out to remove footer)
|
| 65 |
|