Spaces:
Sleeping
Sleeping
Commit
·
2fe9413
1
Parent(s):
7ea11eb
add .json
Browse files
app.py
CHANGED
|
@@ -12,8 +12,8 @@ import os
|
|
| 12 |
os.environ["USE_FLASH_ATTENTION"] = "0"
|
| 13 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 14 |
|
| 15 |
-
product_strings = [product for product in json.load("../Data/product_strings")]
|
| 16 |
-
recipe_strings = [recipe for recipe in json.load("..Data/recipe_strings")]
|
| 17 |
|
| 18 |
client = QdrantClient(":memory:") #QdrantClient("localhost:6333")
|
| 19 |
client.set_model("sentence-transformers/all-MiniLM-L6-v2")
|
|
|
|
| 12 |
os.environ["USE_FLASH_ATTENTION"] = "0"
|
| 13 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 14 |
|
| 15 |
+
product_strings = [product for product in json.load("../Data/product_strings.json")]
|
| 16 |
+
recipe_strings = [recipe for recipe in json.load("..Data/recipe_strings.json")]
|
| 17 |
|
| 18 |
client = QdrantClient(":memory:") #QdrantClient("localhost:6333")
|
| 19 |
client.set_model("sentence-transformers/all-MiniLM-L6-v2")
|