Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,8 +25,10 @@ class VectorStore:
|
|
25 |
|
26 |
# Process in batches
|
27 |
texts = []
|
28 |
-
|
29 |
for i, example in enumerate(dataset):
|
|
|
|
|
30 |
title = example['title_cleaned']
|
31 |
recipe = example['recipe_new']
|
32 |
meal_type = example['meal_type']
|
|
|
25 |
|
26 |
# Process in batches
|
27 |
texts = []
|
28 |
+
max_examples = 1500
|
29 |
for i, example in enumerate(dataset):
|
30 |
+
if i >= max_examples:
|
31 |
+
break
|
32 |
title = example['title_cleaned']
|
33 |
recipe = example['recipe_new']
|
34 |
meal_type = example['meal_type']
|