Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ model = SentenceTransformer("all-MiniLM-L6-v2")
|
|
| 10 |
df = pd.read_excel("SupplierList.xlsx")
|
| 11 |
|
| 12 |
supplier_names = df["Supplier Name"].tolist()
|
| 13 |
-
supplier_texts = df["
|
| 14 |
|
| 15 |
# Precompute supplier embeddings
|
| 16 |
supplier_embeddings = model.encode(supplier_texts, convert_to_tensor=True, normalize_embeddings=True)
|
|
|
|
| 10 |
df = pd.read_excel("SupplierList.xlsx")
|
| 11 |
|
| 12 |
supplier_names = df["Supplier Name"].tolist()
|
| 13 |
+
supplier_texts = df["Capability"].fillna("").tolist()
|
| 14 |
|
| 15 |
# Precompute supplier embeddings
|
| 16 |
supplier_embeddings = model.encode(supplier_texts, convert_to_tensor=True, normalize_embeddings=True)
|