gbrabbit commited on
Commit
5154d4b
ยท
1 Parent(s): 34d0a60

Auto commit at 09-2025-08 1:59:08

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -2
  2. lily_llm_api/app_v2.py +0 -1
Dockerfile CHANGED
@@ -37,7 +37,7 @@ RUN python -c "import nltk; nltk.download('punkt'); nltk.download('punkt_tab');
37
  COPY . .
38
 
39
  # ํ•„์š”ํ•œ ๋””๋ ‰ํ† ๋ฆฌ ์ƒ์„ฑ
40
- RUN mkdir -p /app/data /app/logs /app/models /app/uploads /app/vector_stores /app/orc_models /app/temp /app/cache/transformers /app/cache/huggingface /app/cache/easyocr /app/cache/ocr_models
41
 
42
  # ๊ถŒํ•œ ์„ค์ • - ๋ชจ๋“  ์บ์‹œ ๋ฐ ๋ฐ์ดํ„ฐ ๋””๋ ‰ํ† ๋ฆฌ์— ์“ฐ๊ธฐ ๊ถŒํ•œ ๋ถ€์—ฌ
43
  RUN chmod +x /app/*.py
@@ -46,7 +46,7 @@ RUN chmod -R 777 /app/data
46
  RUN chmod -R 777 /app/logs
47
  RUN chmod -R 777 /app/uploads
48
  RUN chmod -R 777 /app/vector_stores
49
- RUN chmod -R 777 /app/orc_models
50
  RUN chmod -R 777 /app/temp
51
  RUN chmod -R 777 /app/cache/easyocr
52
  RUN chmod -R 777 /app/cache/ocr_models
 
37
  COPY . .
38
 
39
  # ํ•„์š”ํ•œ ๋””๋ ‰ํ† ๋ฆฌ ์ƒ์„ฑ
40
+ RUN mkdir -p /app/data /app/logs /app/models /app/uploads /app/vector_stores /app/ocr_models /app/temp /app/cache/transformers /app/cache/huggingface /app/cache/easyocr /app/cache/ocr_models
41
 
42
  # ๊ถŒํ•œ ์„ค์ • - ๋ชจ๋“  ์บ์‹œ ๋ฐ ๋ฐ์ดํ„ฐ ๋””๋ ‰ํ† ๋ฆฌ์— ์“ฐ๊ธฐ ๊ถŒํ•œ ๋ถ€์—ฌ
43
  RUN chmod +x /app/*.py
 
46
  RUN chmod -R 777 /app/logs
47
  RUN chmod -R 777 /app/uploads
48
  RUN chmod -R 777 /app/vector_stores
49
+ RUN chmod -R 777 /app/ocr_models
50
  RUN chmod -R 777 /app/temp
51
  RUN chmod -R 777 /app/cache/easyocr
52
  RUN chmod -R 777 /app/cache/ocr_models
lily_llm_api/app_v2.py CHANGED
@@ -233,7 +233,6 @@ def load_model_sync(model_id: str):
233
  logger.info("๐Ÿ”ง ํ† ํฌ๋‚˜์ด์ € ๋ฉ€ํ‹ฐ๋ชจ๋‹ฌ ๊ธฐ๋Šฅ ํ™œ์„ฑํ™”...")
234
  tokenizer.mllm_setup(num_visual_tokens=1)
235
  from transformers import AutoImageProcessor
236
-
237
 
238
  # ํ™˜๊ฒฝ์— ๋”ฐ๋ผ ์ด๋ฏธ์ง€ ํ”„๋กœ์„ธ์„œ ๋กœ๋”ฉ ๋ถ„๊ธฐ
239
  if current_profile.is_local:
 
233
  logger.info("๐Ÿ”ง ํ† ํฌ๋‚˜์ด์ € ๋ฉ€ํ‹ฐ๋ชจ๋‹ฌ ๊ธฐ๋Šฅ ํ™œ์„ฑํ™”...")
234
  tokenizer.mllm_setup(num_visual_tokens=1)
235
  from transformers import AutoImageProcessor
 
236
 
237
  # ํ™˜๊ฒฝ์— ๋”ฐ๋ผ ์ด๋ฏธ์ง€ ํ”„๋กœ์„ธ์„œ ๋กœ๋”ฉ ๋ถ„๊ธฐ
238
  if current_profile.is_local: