Skip to content

Commit de52064

Browse files
author
Ubuntu
committed
Fix engrafo version
* add dummy config * add docker-py as dependency * fix busy box timeout syntax * fix engrafo version
1 parent 0111827 commit de52064

File tree

5 files changed

+3
-12
lines changed

5 files changed

+3
-12
lines changed

clean_html.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ SOURCE=$(realpath "$1")
44
mkdir -p $(dirname "$2")
55
OUTPUT=$(realpath "$2")
66

7-
docker run --rm -v "$SOURCE":/files/index.html:ro --entrypoint '' zenika/alpine-chrome:73 timeout -t 20 -s KILL chromium-browser --headless --disable-gpu --disable-software-rasterizer --no-sandbox --timeout=30000 --dump-dom /files/index.html > "$OUTPUT"
7+
docker run --rm -v "$SOURCE":/files/index.html:ro --entrypoint '' zenika/alpine-chrome:73 timeout -s KILL 20 chromium-browser --headless --disable-gpu --disable-software-rasterizer --no-sandbox --timeout=30000 --dump-dom /files/index.html > "$OUTPUT"

docker-latex2html.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ OUTPUT=$(realpath "$2") #~/arxiv/htmls/1701/1701.xyz.html
66
OUTPUT_DIR=$(dirname "$OUTPUT") #~/arxiv/htmls/1701
77
FILENAME=$(basename "$OUTPUT") #1701.xyz.html
88

9-
docker run --rm -v $PWD/latex2html.sh:/files/latex2html.sh:ro -v $PWD/guess_main.py:/files/guess_main.py:ro -v $PWD/patches:/files/patches:ro -v "$SOURCE_DIR":/files/ro-source:ro -v "$OUTPUT_DIR":/files/htmls arxivvanity/engrafo /files/latex2html.sh "$FILENAME"
9+
docker run --rm -v $PWD/latex2html.sh:/files/latex2html.sh:ro -v $PWD/guess_main.py:/files/guess_main.py:ro -v $PWD/patches:/files/patches:ro -v "$SOURCE_DIR":/files/ro-source:ro -v "$OUTPUT_DIR":/files/htmls arxivvanity/engrafo:b3db888fefa118eacf4f13566204b68ce100b3a6 /files/latex2html.sh "$FILENAME"

environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ dependencies:
1717
- ipython=7.5.0
1818
- joblib=0.13.2
1919
- python-magic=0.4.15
20+
- docker-py=4.1.0

sota_extractor2/config.py

Whitespace-only changes.

sota_extractor2/data/__init__.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +0,0 @@
1-
import logging
2-
from .. import config # to get logging init
3-
4-
logger = logging.getLogger(__name__)
5-
6-
try:
7-
from db import *
8-
except:
9-
logger.info("Unable to intialise django falling back to json data")
10-
from json import *

0 commit comments

Comments
 (0)