GloryIX commited on
Commit
146c1d1
·
verified ·
1 Parent(s): 4dc193a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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('/content/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()
 
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()