jokester commited on
Commit
4df5ed6
·
1 Parent(s): 4fbdb1f

update code

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -2
  2. requirements-moeflow.txt +14 -7
Dockerfile CHANGED
@@ -14,7 +14,7 @@ RUN mkdir -pv /app/storage \
14
  RUN venv/bin/pip install -r /home/mambauser/bootstrap/requirements-moeflow.txt
15
  # HF does not seem to have layer cache anyway
16
  # (must specify -n base to use installed curl)
17
- RUN micromamba run -n base curl -L https://github.com/moeflow-com/manga-image-translator/archive/d4c8402f503719b14432cc4831305a0e810cdc2d.tar.gz | tar xvz --strip-components=1
18
  # NOTE for unknown reason we need to download here. or there will be runtime file permission error
19
  RUN venv/bin/python docker_prepare.py --models ocr.48px,ocr.48px_ctc,ocr.32px,ocr.mocr,detector.default,detector.ctd,detector.craft,detector.none
20
- CMD venv/bin/python gradio-multi.py
 
14
  RUN venv/bin/pip install -r /home/mambauser/bootstrap/requirements-moeflow.txt
15
  # HF does not seem to have layer cache anyway
16
  # (must specify -n base to use installed curl)
17
+ RUN micromamba run -n base curl -L https://github.com/moeflow-com/manga-image-translator/archive/9114f0571d58ef1657d596345b0c659e573b683c.tar.gz | tar xvz --strip-components=1
18
  # NOTE for unknown reason we need to download here. or there will be runtime file permission error
19
  RUN venv/bin/python docker_prepare.py --models ocr.48px,ocr.48px_ctc,ocr.32px,ocr.mocr,detector.default,detector.ctd,detector.craft,detector.none
20
+ CMD venv/bin/python gradio-main.py
requirements-moeflow.txt CHANGED
@@ -1,8 +1,8 @@
1
  # vim: ft=requirements
2
  # networkx
3
- torch
4
  # groq
5
- torchvision
6
  # torch-summary
7
  einops
8
  scikit-image
@@ -29,12 +29,13 @@ py3langid==0.2.2
29
  # protobuf
30
  # ctranslate2
31
  colorama
32
- openai==1.35.9
33
- httpx==0.27.2 # stop before blocking change in 0.28.0
 
34
  # open_clip_torch
35
  # safetensors
36
  pandas
37
- onnxruntime==1.18.1
38
  timm
39
  omegaconf
40
  python-dotenv
@@ -45,7 +46,7 @@ python-dotenv
45
  # aiofiles
46
  # arabic-reshaper
47
  # pyhyphen
48
- # langcodes
49
  manga-ocr
50
  # langdetect
51
  # pydensecrf@https://github.com/lucasb-eyer/pydensecrf/archive/refs/heads/master.zip
@@ -55,6 +56,12 @@ manga-ocr
55
  # fastapi
56
  # pydantic
57
  # python-multipart
 
 
58
 
59
- gradio==5.6.0
 
 
 
 
60
  orjson==3.10.11
 
1
  # vim: ft=requirements
2
  # networkx
3
+ # torch
4
  # groq
5
+ # torchvision
6
  # torch-summary
7
  einops
8
  scikit-image
 
29
  # protobuf
30
  # ctranslate2
31
  colorama
32
+ openai==1.63.0
33
+ tiktoken
34
+ # httpx==0.27.2 # stop before blocking change in 0.28.0
35
  # open_clip_torch
36
  # safetensors
37
  pandas
38
+ onnxruntime==1.20.1
39
  timm
40
  omegaconf
41
  python-dotenv
 
46
  # aiofiles
47
  # arabic-reshaper
48
  # pyhyphen
49
+ langcodes
50
  manga-ocr
51
  # langdetect
52
  # pydensecrf@https://github.com/lucasb-eyer/pydensecrf/archive/refs/heads/master.zip
 
56
  # fastapi
57
  # pydantic
58
  # python-multipart
59
+ google-genai==1.8.0
60
+ rich
61
 
62
+ paddleocr==2.10.0
63
+ paddlepaddle==2.6.2
64
+ paddlepaddle-gpu==2.6.2; sys_platform != 'darwin'
65
+
66
+ gradio==5.23.0
67
  orjson==3.10.11