Spaces:
Sleeping
Sleeping
supertskone
commited on
Merge branch 'main' of https://huggingface.co/spaces/supertskone/prompt-search-engine
Browse files- Dockerfile +4 -5
- app/vectorizer.py +1 -1
Dockerfile
CHANGED
@@ -7,8 +7,7 @@ RUN useradd -m -u 1000 user
|
|
7 |
|
8 |
# Set the home directory for the user
|
9 |
ENV HOME=/home/user \
|
10 |
-
|
11 |
-
PATH=/home/user/.local/bin:$PATH
|
12 |
|
13 |
# Set the working directory for the new user
|
14 |
WORKDIR $HOME/app
|
@@ -28,9 +27,9 @@ WORKDIR /app
|
|
28 |
COPY . /app
|
29 |
|
30 |
# Install system dependencies
|
31 |
-
RUN apt-get update && apt-get install -u 0 -y \
|
32 |
-
|
33 |
-
|
34 |
|
35 |
# Install Python dependencies
|
36 |
RUN pip install --no-cache-dir --upgrade pip
|
|
|
7 |
|
8 |
# Set the home directory for the user
|
9 |
ENV HOME=/home/user \
|
10 |
+
PATH=/home/user/.local/bin:$PATH
|
|
|
11 |
|
12 |
# Set the working directory for the new user
|
13 |
WORKDIR $HOME/app
|
|
|
27 |
COPY . /app
|
28 |
|
29 |
# Install system dependencies
|
30 |
+
# RUN apt-get update && apt-get install -u 0 -y \
|
31 |
+
# git \
|
32 |
+
# && rm -rf /var/lib/apt/lists/*
|
33 |
|
34 |
# Install Python dependencies
|
35 |
RUN pip install --no-cache-dir --upgrade pip
|
app/vectorizer.py
CHANGED
@@ -20,7 +20,7 @@ class Vectorizer:
|
|
20 |
self.model = SentenceTransformer(model_name)
|
21 |
self.prompts = []
|
22 |
self.batch_size = batch_size
|
23 |
-
self.pinecone_index_name = "search-prompts-index"
|
24 |
self._init_pinecone = init_pinecone
|
25 |
self._setup_pinecone()
|
26 |
self._load_prompts()
|
|
|
20 |
self.model = SentenceTransformer(model_name)
|
21 |
self.prompts = []
|
22 |
self.batch_size = batch_size
|
23 |
+
self.pinecone_index_name = "hfs-search-prompts-index"
|
24 |
self._init_pinecone = init_pinecone
|
25 |
self._setup_pinecone()
|
26 |
self._load_prompts()
|