AurelioAguirre commited on
Commit
c6de67d
·
1 Parent(s): 5f83df3

Fixing cache directory

Browse files
Files changed (3) hide show
  1. .idea/misc.xml +1 -1
  2. Dockerfile +3 -3
  3. main/config.yaml +1 -1
.idea/misc.xml CHANGED
@@ -3,7 +3,7 @@
3
  <component name="Black">
4
  <option name="sdkName" value="Python 3.12 (LLM-Engine)" />
5
  </component>
6
- <component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="Python 3.12 (LLM-Engine)" project-jdk-type="Python SDK">
7
  <output url="file://$PROJECT_DIR$/out" />
8
  </component>
9
  </project>
 
3
  <component name="Black">
4
  <option name="sdkName" value="Python 3.12 (LLM-Engine)" />
5
  </component>
6
+ <component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="Python 3.12 (LLM-Engine) (2)" project-jdk-type="Python SDK">
7
  <output url="file://$PROJECT_DIR$/out" />
8
  </component>
9
  </project>
Dockerfile CHANGED
@@ -12,8 +12,8 @@ COPY requirements.txt .
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
  # Create necessary directories and set permissions
15
- RUN mkdir -p /app/logs /app/hf_cache /app/main/.cache /app/models \
16
- && chmod 777 /app/logs /app/hf_cache /app/main/.cache /app/models
17
 
18
  # Copy the application code
19
  COPY main /app/main
@@ -22,7 +22,7 @@ COPY ./utils /app/utils
22
  # Set environment variables
23
  ENV PYTHONPATH=/main
24
  ENV PYTHONUNBUFFERED=1
25
- ENV HF_HOME=/app/hf_cache
26
 
27
  # Expose the port (Hugging Face API runs on 7680)
28
  EXPOSE 7680
 
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
  # Create necessary directories and set permissions
15
+ RUN mkdir -p /app/logs /app/.cache /app/models \
16
+ && chmod 777 /app/logs /app/.cache /app/models
17
 
18
  # Copy the application code
19
  COPY main /app/main
 
22
  # Set environment variables
23
  ENV PYTHONPATH=/main
24
  ENV PYTHONUNBUFFERED=1
25
+ ENV HF_HOME=/app/.cache
26
 
27
  # Expose the port (Hugging Face API runs on 7680)
28
  EXPOSE 7680
main/config.yaml CHANGED
@@ -14,7 +14,7 @@ model:
14
 
15
  folders:
16
  models: "models"
17
- cache: "main/.cache"
18
  logs: "logs"
19
 
20
  logging:
 
14
 
15
  folders:
16
  models: "models"
17
+ cache: ".cache"
18
  logs: "logs"
19
 
20
  logging: