shlokamhaisekar commited on
Commit
6a1bf4d
·
verified ·
1 Parent(s): fde7a73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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