Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ from unittest.mock import patch
|
|
20 |
df = pd.read_csv('Global_Superstore2.csv', encoding='ISO-8859-1')
|
21 |
schema_info = "\n".join([f"- `{col}` ({dtype})" for col, dtype in df.dtypes.items()])
|
22 |
|
23 |
-
history_df = pd.read_csv('
|
24 |
embeddings = HuggingFaceEmbeddings(model_name="sentence-transformers/all-MiniLM-L6-v2")
|
25 |
faiss_index = FAISS.from_texts(history_df['request'].tolist(), embeddings)
|
26 |
retriever = faiss_index.as_retriever()
|
|
|
20 |
df = pd.read_csv('Global_Superstore2.csv', encoding='ISO-8859-1')
|
21 |
schema_info = "\n".join([f"- `{col}` ({dtype})" for col, dtype in df.dtypes.items()])
|
22 |
|
23 |
+
history_df = pd.read_csv('sample_requests_and_code_300plus.csv')
|
24 |
embeddings = HuggingFaceEmbeddings(model_name="sentence-transformers/all-MiniLM-L6-v2")
|
25 |
faiss_index = FAISS.from_texts(history_df['request'].tolist(), embeddings)
|
26 |
retriever = faiss_index.as_retriever()
|