abadesalex commited on
Commit
e6955b5
1 Parent(s): 0c6a58b

docker gensim permisions

Browse files
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", "/root/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', '/home/user/gensim-data')
6
 
7
  # Load the GloVe model
8
  model = api.load("glove-wiki-gigaword-50")