Update app.py
Browse files
app.py
CHANGED
@@ -63,9 +63,9 @@ def loading_database(open_ai_key):
|
|
63 |
"Bulevar offers tasty Mexican Cuisine with a laid back style to fine-dining.",
|
64 |
"Bulevar is another restaurant created by Guy and Larry. With the success of their ATX Cocina, Bulevar has created another unique dining experience with high quality dishes."
|
65 |
]
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
loader = TextLoader('raw_text/food_guide.md')
|
70 |
documents = loader.load()
|
71 |
|
|
|
63 |
"Bulevar offers tasty Mexican Cuisine with a laid back style to fine-dining.",
|
64 |
"Bulevar is another restaurant created by Guy and Larry. With the success of their ATX Cocina, Bulevar has created another unique dining experience with high quality dishes."
|
65 |
]
|
66 |
+
bulevar_details_retriever = Chroma.from_texts(bulevar_restaurant_texts, embeddings, persist_directory=REST_PERSIST_DIRECTORY) #, embedding_function= embeddings
|
67 |
+
if not os.path.exists(REST_PERSIST_DIRECTORY):
|
68 |
+
save_dir(bulevar_details_retriever)
|
69 |
loader = TextLoader('raw_text/food_guide.md')
|
70 |
documents = loader.load()
|
71 |
|