Spaces:
Build error
Build error
Hong
commited on
Commit
·
3ff3519
1
Parent(s):
e851e40
Update app.py
Browse files
app.py
CHANGED
@@ -14,15 +14,15 @@ from utils import (
|
|
14 |
from ast import literal_eval
|
15 |
from stqdm import stqdm
|
16 |
|
17 |
-
with open("
|
18 |
lines = file.readlines()
|
19 |
jobs = [line.rstrip() for line in lines]
|
20 |
|
21 |
-
DB = pd.read_csv("
|
22 |
DB.details = DB.details.apply(lambda x: literal_eval(x))
|
23 |
DB.tokenized = DB.tokenized.apply(lambda x: literal_eval(x))
|
24 |
DB = DB.drop_duplicates(["description"])
|
25 |
-
data = pd.read_csv("
|
26 |
|
27 |
|
28 |
def get_recommendation(DB, data, jobname, by="course_info"):
|
|
|
14 |
from ast import literal_eval
|
15 |
from stqdm import stqdm
|
16 |
|
17 |
+
with open("joblists.txt") as file:
|
18 |
lines = file.readlines()
|
19 |
jobs = [line.rstrip() for line in lines]
|
20 |
|
21 |
+
DB = pd.read_csv("JDs_final.csv").dropna()
|
22 |
DB.details = DB.details.apply(lambda x: literal_eval(x))
|
23 |
DB.tokenized = DB.tokenized.apply(lambda x: literal_eval(x))
|
24 |
DB = DB.drop_duplicates(["description"])
|
25 |
+
data = pd.read_csv("processed_courses_data.csv")
|
26 |
|
27 |
|
28 |
def get_recommendation(DB, data, jobname, by="course_info"):
|