Spaces:
Sleeping
Sleeping
fix: config file
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.json
CMD ["pdf2zh", "-i"]Dockerfile+8