abadesalex commited on
Commit
1c6ac79
1 Parent(s): ed88d29

cheking permisions on root

Browse files
Dockerfile CHANGED
@@ -2,9 +2,9 @@
2
  FROM python:3.9
3
 
4
  # Set the environment variable for Gensim data directory
5
- ENV GENSIM_DATA_DIR=/tmp/gensim-data
6
 
7
- RUN mkdir -p /tmp/gensim-data
8
 
9
  WORKDIR /code
10
 
 
2
  FROM python:3.9
3
 
4
  # Set the environment variable for Gensim data directory
5
+ ENV GENSIM_DATA_DIR=/root/gensim-data
6
 
7
+ RUN mkdir -p /root/gensim-data
8
 
9
  WORKDIR /code
10
 
FastAPI/app/utils/__pycache__/embedding.cpython-310.pyc CHANGED
Binary files a/FastAPI/app/utils/__pycache__/embedding.cpython-310.pyc and b/FastAPI/app/utils/__pycache__/embedding.cpython-310.pyc differ
 
FastAPI/app/utils/embedding.py CHANGED
@@ -2,7 +2,7 @@ import os
2
  import gensim.downloader as api
3
 
4
  # Ensure the environment variable is set correctly
5
- gensim_data_dir = os.getenv('GENSIM_DATA_DIR', '/tmp/gensim-data')
6
 
7
  # Load the GloVe model
8
  model = api.load("glove-wiki-gigaword-50")
 
2
  import gensim.downloader as api
3
 
4
  # Ensure the environment variable is set correctly
5
+ gensim_data_dir = os.getenv("GENSIM_DATA_DIR", "/root/gensim-data")
6
 
7
  # Load the GloVe model
8
  model = api.load("glove-wiki-gigaword-50")