Skip to content

Commit

Permalink
Updated files to match release
Browse files Browse the repository at this point in the history
  • Loading branch information
Crivella committed Oct 9, 2023
1 parent 06f9bd9 commit fbb5435
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
12 changes: 8 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,25 @@ export DJANGO_SETTINGS_MODULE=mysite.settings

pyinstaller \
--onedir \
--name run_server \
--name run_server-gpu \
--icon icon.ico \
--add-data "ocr_translate/ocr_tsl/languages.json:ocr_translate/ocr_tsl" \
--collect-all djang-ocr_translate \
--add-data "ocr_translate/dictionaries/*:ocr_translate/dictionaries" \
--collect-all torch \
--collect-all torchvision \
--collect-all transformers \
--collect-all unidic_lite \
--collect-all sacremoses \
--collect-all sentencepiece \
--recursive-copy-metadata djang-ocr_translate \
--collect-all ocr_translate-hugging_face \
--collect-all ocr_translate-easyocr \
--collect-all ocr_translate-tesseract \
--recursive-copy-metadata torch \
--recursive-copy-metadata torchvision \
--recursive-copy-metadata transformers \
--recursive-copy-metadata unidic_lite \
--recursive-copy-metadata sacremoses \
--recursive-copy-metadata sentencepiece \
run_server.py
--recursive-copy-metadat ocr_translate-hugging_face \
--recursive-copy-metadat ocr_translate-easyocr \
--recursive-copy-metadat ocr_translate-tesseract run_server.py
1 change: 1 addition & 0 deletions ocr_translate/dictionaries/en.txt
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ nil
nim
nop
now
not
nun
oak
odd
Expand Down
3 changes: 2 additions & 1 deletion run_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ def main():

auto_create_languages()
auto_create_models()
init_most_used()
if os.getenv('LOAD_ON_START', 'false') == 'true':
init_most_used()

call_command('runserver', '--noreload', '4000')

Expand Down

0 comments on commit fbb5435

Please sign in to comment.