JaceWei commited on
Commit
fa69a73
·
1 Parent(s): f3ac8c7

update: push latest content

Browse files
Files changed (2) hide show
  1. app.py +0 -3
  2. pipeline.py +2 -2
app.py CHANGED
@@ -65,7 +65,6 @@ def run_pipeline(arxiv_url, pdf_file, openai_key, logo_files):
65
  # 为 pipeline 的 Step 1.5 兼容:额外复制到 input/paper.pdf
66
  canonical_pdf = INPUT_DIR / "paper.pdf"
67
  shutil.copy(pdf_file.name, canonical_pdf)
68
- logs.append(f"🔁 Also copied PDF to: {canonical_pdf}\n")
69
 
70
  # ====== 校验输入来源 ======
71
  if not arxiv_url and not pdf_file:
@@ -91,8 +90,6 @@ def run_pipeline(arxiv_url, pdf_file, openai_key, logo_files):
91
  if pdf_path:
92
  cmd += ["--pdf_path", str(pdf_path)]
93
 
94
- logs.append(f"🧠 Running command:\n{' '.join(cmd)}\n")
95
-
96
  try:
97
  result = subprocess.run(
98
  cmd, capture_output=True, text=True, timeout=1800
 
65
  # 为 pipeline 的 Step 1.5 兼容:额外复制到 input/paper.pdf
66
  canonical_pdf = INPUT_DIR / "paper.pdf"
67
  shutil.copy(pdf_file.name, canonical_pdf)
 
68
 
69
  # ====== 校验输入来源 ======
70
  if not arxiv_url and not pdf_file:
 
90
  if pdf_path:
91
  cmd += ["--pdf_path", str(pdf_path)]
92
 
 
 
93
  try:
94
  result = subprocess.run(
95
  cmd, capture_output=True, text=True, timeout=1800
pipeline.py CHANGED
@@ -10,8 +10,8 @@ from PIL import Image
10
 
11
  print("Initializing...")
12
 
13
- from Paper2Video.src.slide_code_gen import latex_code_gen
14
- from Paper2Video.src.wei_utils import get_agent_config
15
  from posterbuilder import build_poster as build_poster
16
  from posterbuilder.build_poster import IMAGES_DIR_NAME
17
 
 
10
 
11
  print("Initializing...")
12
 
13
+ # from Paper2Video.src.slide_code_gen import latex_code_gen
14
+ # from Paper2Video.src.wei_utils import get_agent_config
15
  from posterbuilder import build_poster as build_poster
16
  from posterbuilder.build_poster import IMAGES_DIR_NAME
17