Spaces:
Building
Building
Update src/services/utils.py
Browse files- src/services/utils.py +2 -1
src/services/utils.py
CHANGED
@@ -6,6 +6,7 @@ import nltk
|
|
6 |
from nltk.stem import *
|
7 |
nltk.download("punkt_tab")
|
8 |
|
|
|
9 |
|
10 |
def set_prompt(problem):
|
11 |
prompt = """Task : Find all the constraints in this technical problem making sure each are premised on the problem only.
|
@@ -16,7 +17,7 @@ def set_prompt(problem):
|
|
16 |
return prompt
|
17 |
|
18 |
def load_technologies():
|
19 |
-
df = pd.read_excel(
|
20 |
return df
|
21 |
|
22 |
def tech_to_dict(technologies):
|
|
|
6 |
from nltk.stem import *
|
7 |
nltk.download("punkt_tab")
|
8 |
|
9 |
+
TECH_PATH = "/app/src/services/technologies_database.xlsx"
|
10 |
|
11 |
def set_prompt(problem):
|
12 |
prompt = """Task : Find all the constraints in this technical problem making sure each are premised on the problem only.
|
|
|
17 |
return prompt
|
18 |
|
19 |
def load_technologies():
|
20 |
+
df = pd.read_excel(TECH_PATH)
|
21 |
return df
|
22 |
|
23 |
def tech_to_dict(technologies):
|