new test
Browse files- __pycache__/config.cpython-310.pyc +0 -0
- __pycache__/config_key.cpython-310.pyc +0 -0
- app.py +2 -2
__pycache__/config.cpython-310.pyc
CHANGED
Binary files a/__pycache__/config.cpython-310.pyc and b/__pycache__/config.cpython-310.pyc differ
|
|
__pycache__/config_key.cpython-310.pyc
CHANGED
Binary files a/__pycache__/config_key.cpython-310.pyc and b/__pycache__/config_key.cpython-310.pyc differ
|
|
app.py
CHANGED
@@ -13,7 +13,7 @@ import src.view.view as view
|
|
13 |
|
14 |
|
15 |
os.environ["TOKENIZERS_PARALLELISM"] = "true"
|
16 |
-
|
17 |
|
18 |
doc_content = Doc(content_en_path)
|
19 |
doc_plan = Doc(plan_path)
|
@@ -22,7 +22,7 @@ doc_content_fr = Doc(content_fr_path)
|
|
22 |
client_db = chromadb.Client()
|
23 |
retriever = Retriever(client_db, doc_plan, doc_content, doc_content_fr, collection_name)
|
24 |
|
25 |
-
llm_model = OpenAI(temperature=0)
|
26 |
llm = LlmAgent(llm_model)
|
27 |
|
28 |
specials['remote_rate_df'] = pd.read_csv(specials['remote_rate_path'])
|
|
|
13 |
|
14 |
|
15 |
os.environ["TOKENIZERS_PARALLELISM"] = "true"
|
16 |
+
OPENAI_API_KEY = os.environ["OPENAI_API_KEY"]
|
17 |
|
18 |
doc_content = Doc(content_en_path)
|
19 |
doc_plan = Doc(plan_path)
|
|
|
22 |
client_db = chromadb.Client()
|
23 |
retriever = Retriever(client_db, doc_plan, doc_content, doc_content_fr, collection_name)
|
24 |
|
25 |
+
llm_model = OpenAI(temperature=0, openai_api_key=OPENAI_API_KEY)
|
26 |
llm = LlmAgent(llm_model)
|
27 |
|
28 |
specials['remote_rate_df'] = pd.read_csv(specials['remote_rate_path'])
|