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: