Spaces:
Sleeping
Sleeping
fix: config path
Browse files15 unmodified lines1617181920212223242526272815 unmodified linesRUN chmod 777 /.cacheRUN mkdir -p ./gradio_filesRUN chmod 777 ./gradio_filesRUN mkdir -p ~/.configRUN chmod 777 ~/.configRUN mkdir -p ~/.config/PDFMathTranslateRUN chmod 777 ~/.config/PDFMathTranslate# write several lines to the file ~/.config/PDFMathTranslate/config.jsonRUN echo '{ "USE_MODELSCOPE": "0", "PDF2ZH_LANG_FROM": "English", "PDF2ZH_LANG_TO": "Simplified Chinese", "NOTO_FONT_PATH": "/app/SourceHanSerifCN-Regular.ttf", "translators":[]}' > ~/.config/PDFMathTranslate/config.jsonCMD ["pdf2zh", "-i"]15 unmodified lines1617181920212223242526272815 unmodified linesRUN chmod 777 /.cacheRUN mkdir -p ./gradio_filesRUN chmod 777 ./gradio_filesRUN mkdir -p /.configRUN chmod 777 /.configRUN mkdir -p /.config/PDFMathTranslateRUN chmod 777 /.config/PDFMathTranslate# write several lines to the file /.config/PDFMathTranslate/config.jsonRUN echo '{ "USE_MODELSCOPE": "0", "PDF2ZH_LANG_FROM": "English", "PDF2ZH_LANG_TO": "Simplified Chinese", "NOTO_FONT_PATH": "/app/SourceHanSerifCN-Regular.ttf", "translators":[]}' > /.config/PDFMathTranslate/config.jsonCMD ["pdf2zh", "-i", "--config", "/.config/PDFMathTranslate/config.json"]
Dockerfile+7-7