KevinHuSh
commited on
Commit
·
4b407a8
1
Parent(s):
ee82924
fix bug #502 (#504)
Browse files### What problem does this PR solve?
#502
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
- docker/entrypoint.sh +0 -1
- rag/app/paper.py +1 -1
docker/entrypoint.sh
CHANGED
@@ -23,7 +23,6 @@ function watch_broker(){
|
|
23 |
}
|
24 |
|
25 |
function task_bro(){
|
26 |
-
sleep 160;
|
27 |
watch_broker;
|
28 |
}
|
29 |
|
|
|
23 |
}
|
24 |
|
25 |
function task_bro(){
|
|
|
26 |
watch_broker;
|
27 |
}
|
28 |
|
rag/app/paper.py
CHANGED
@@ -78,7 +78,7 @@ class Pdf(PdfParser):
|
|
78 |
title = ""
|
79 |
authors = []
|
80 |
i = 0
|
81 |
-
while i < min(32, len(self.boxes)):
|
82 |
b = self.boxes[i]
|
83 |
i += 1
|
84 |
if b.get("layoutno", "").find("title") >= 0:
|
|
|
78 |
title = ""
|
79 |
authors = []
|
80 |
i = 0
|
81 |
+
while i < min(32, len(self.boxes)-1):
|
82 |
b = self.boxes[i]
|
83 |
i += 1
|
84 |
if b.get("layoutno", "").find("title") >= 0:
|