Spaces:
Paused
Paused
Tao Wu
commited on
Commit
·
9e5c55b
1
Parent(s):
b194436
fix bug
Browse files- Dockerfile +1 -1
- app/app.py +1 -1
Dockerfile
CHANGED
@@ -17,7 +17,7 @@ WORKDIR /app
|
|
17 |
COPY app /app
|
18 |
|
19 |
COPY app/data/dump.rdb /var/lib/redis/dump.rdb
|
20 |
-
|
21 |
|
22 |
RUN chmod +x /start.sh
|
23 |
|
|
|
17 |
COPY app /app
|
18 |
|
19 |
COPY app/data/dump.rdb /var/lib/redis/dump.rdb
|
20 |
+
|
21 |
|
22 |
RUN chmod +x /start.sh
|
23 |
|
app/app.py
CHANGED
@@ -7,7 +7,7 @@ from config import *
|
|
7 |
from embedding_setup import retriever, find_similar_occupation
|
8 |
from data_process import build_skill_query, get_occupations_from_csv, get_courses_from_BA, get_occupation_detial, build_occupation_query
|
9 |
|
10 |
-
|
11 |
skill_details_mapping = {}
|
12 |
|
13 |
|
|
|
7 |
from embedding_setup import retriever, find_similar_occupation
|
8 |
from data_process import build_skill_query, get_occupations_from_csv, get_courses_from_BA, get_occupation_detial, build_occupation_query
|
9 |
|
10 |
+
r = redis.Redis(host=REDIS_HOST, port=REDIS_PORT, db=REDIS_DB, decode_responses=True)
|
11 |
skill_details_mapping = {}
|
12 |
|
13 |
|