Spaces:
Sleeping
Sleeping
fix: config path
Browse files15 unmodified lines161718192021221920212223242526252627282815 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/PDFMathTranslateRUN 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.json# 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.json
CMD ["pdf2zh", "-i"]CMD ["pdf2zh", "-i", "--config", "/.config/PDFMathTranslate/config.json"]Dockerfile+7-7