Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -107,7 +107,7 @@ def respond(message, history):
|
|
| 107 |
best_recipes_chunk = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
|
| 108 |
print(best_recipes_chunk)
|
| 109 |
|
| 110 |
-
str_recipes_chunk = "\n".join(best_recipes_chunk)
|
| 111 |
|
| 112 |
messages = [{"role":"system","content": "You are a chatbot that is a nutrition expert and helps people with their nutritional goals. You help them plan meals based on" + str_recipes_chunk + "."}]
|
| 113 |
|
|
|
|
| 107 |
best_recipes_chunk = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
|
| 108 |
print(best_recipes_chunk)
|
| 109 |
|
| 110 |
+
str_recipes_chunk = "\n".join([str(chunk) for chunk in best_recipes_chunk])
|
| 111 |
|
| 112 |
messages = [{"role":"system","content": "You are a chatbot that is a nutrition expert and helps people with their nutritional goals. You help them plan meals based on" + str_recipes_chunk + "."}]
|
| 113 |
|