Spaces:
Sleeping
Sleeping
Commit
·
51ec7db
1
Parent(s):
9a4a5e2
key error
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
| 15 |
product_strings = []
|
| 16 |
recipe_strings = []
|
| 17 |
with open('./Data/product_strings.json', 'r', encoding='utf-8') as f:
|
| 18 |
-
product_strings = [product for product in json.load(f)["
|
| 19 |
with open('./Data/recipe_strings.json', 'r', encoding='utf-8') as f:
|
| 20 |
recipe_strings = [recipe for recipe in json.load(f)["recipe_strings"]]
|
| 21 |
|
|
|
|
| 15 |
product_strings = []
|
| 16 |
recipe_strings = []
|
| 17 |
with open('./Data/product_strings.json', 'r', encoding='utf-8') as f:
|
| 18 |
+
product_strings = [product for product in json.load(f)["product_strings"]]
|
| 19 |
with open('./Data/recipe_strings.json', 'r', encoding='utf-8') as f:
|
| 20 |
recipe_strings = [recipe for recipe in json.load(f)["recipe_strings"]]
|
| 21 |
|