From 48d37795fb68f75f6c5dd6b3f12c1b8d148ff02c Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Tue, 23 Apr 2024 15:59:26 +0800 Subject: [PATCH] fix bug #502 --- docker/entrypoint.sh | 1 - rag/app/paper.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index a136161826..9854e848fb 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -23,7 +23,6 @@ function watch_broker(){ } function task_bro(){ - sleep 160; watch_broker; } diff --git a/rag/app/paper.py b/rag/app/paper.py index 2e707b527b..69b4d8e717 100644 --- a/rag/app/paper.py +++ b/rag/app/paper.py @@ -78,7 +78,7 @@ def _begin(txt): title = "" authors = [] i = 0 - while i < min(32, len(self.boxes)): + while i < min(32, len(self.boxes)-1): b = self.boxes[i] i += 1 if b.get("layoutno", "").find("title") >= 0: