Spaces:
Sleeping
Sleeping
abadesalex
commited on
Commit
•
ed88d29
1
Parent(s):
2a00cb3
change firectoty roog gensim
Browse files
Dockerfile
CHANGED
@@ -2,7 +2,9 @@
|
|
2 |
FROM python:3.9
|
3 |
|
4 |
# Set the environment variable for Gensim data directory
|
5 |
-
ENV GENSIM_DATA_DIR=/
|
|
|
|
|
6 |
|
7 |
WORKDIR /code
|
8 |
|
|
|
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 |
|
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', '/
|
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', '/tmp/gensim-data')
|
6 |
|
7 |
# Load the GloVe model
|
8 |
model = api.load("glove-wiki-gigaword-50")
|