Spaces:
Sleeping
Sleeping
upload recipes
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from sentence_transformers import SentenceTransformer
|
|
| 5 |
import torch
|
| 6 |
|
| 7 |
# Load knowledge
|
| 8 |
-
with open("
|
| 9 |
knowledge = file.read()
|
| 10 |
cleaned_chunks = [chunk.strip() for chunk in knowledge.strip().split("\n") if chunk.strip()]
|
| 11 |
model = SentenceTransformer('all-MiniLM-L6-v2')
|
|
|
|
| 5 |
import torch
|
| 6 |
|
| 7 |
# Load knowledge
|
| 8 |
+
with open("recipesplease.txt", "r", encoding="utf-8") as file:
|
| 9 |
knowledge = file.read()
|
| 10 |
cleaned_chunks = [chunk.strip() for chunk in knowledge.strip().split("\n") if chunk.strip()]
|
| 11 |
model = SentenceTransformer('all-MiniLM-L6-v2')
|