Spaces:
Sleeping
Sleeping
Commit
·
d2608e3
1
Parent(s):
c5c778a
change directory
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ For more information on `huggingface_hub` Inference API support, please check th
|
|
13 |
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
14 |
|
15 |
product_strings = []
|
16 |
-
with open('
|
17 |
for product in json.load(f)['products']:
|
18 |
product_json = json.dumps(product, indent=4, ensure_ascii=False)
|
19 |
tags_ohne = [tag for tag in product['tags'] if "Eigenschaften_ohne" in tag]
|
@@ -44,7 +44,7 @@ with open('../Data/products.json', 'r', encoding='utf-8') as f:
|
|
44 |
product_strings
|
45 |
blogs = []
|
46 |
recipe_strings = []
|
47 |
-
with open('
|
48 |
data = json.load(f)
|
49 |
for blog in data['blogs']:
|
50 |
if 'Rezepte' in blog['title']:
|
|
|
13 |
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
14 |
|
15 |
product_strings = []
|
16 |
+
with open('./Data/products.json', 'r', encoding='utf-8') as f:
|
17 |
for product in json.load(f)['products']:
|
18 |
product_json = json.dumps(product, indent=4, ensure_ascii=False)
|
19 |
tags_ohne = [tag for tag in product['tags'] if "Eigenschaften_ohne" in tag]
|
|
|
44 |
product_strings
|
45 |
blogs = []
|
46 |
recipe_strings = []
|
47 |
+
with open('./Data/blogs_and_recipes.json', 'r', encoding='utf-8') as f:
|
48 |
data = json.load(f)
|
49 |
for blog in data['blogs']:
|
50 |
if 'Rezepte' in blog['title']:
|