kavyatayal commited on
Commit
b15e23f
·
verified ·
1 Parent(s): 6dd1467

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -109,7 +109,8 @@ def respond(message, history):
109
 
110
  str_recipes_chunk = "\n".join([str(chunk) for chunk in best_recipes_chunk])
111
 
112
- messages = [
 
113
  {
114
  "role": "system",
115
  "content": (
@@ -127,7 +128,8 @@ def respond(message, history):
127
  f"Context:\n{best_recipes_chunk}\n\n"
128
  f"Question: {message}"
129
  )
130
- }]
 
131
 
132
  if history:
133
  messages.extend(history)
 
109
 
110
  str_recipes_chunk = "\n".join([str(chunk) for chunk in best_recipes_chunk])
111
 
112
+ messages =
113
+ [
114
  {
115
  "role": "system",
116
  "content": (
 
128
  f"Context:\n{best_recipes_chunk}\n\n"
129
  f"Question: {message}"
130
  )
131
+ }
132
+ ]
133
 
134
  if history:
135
  messages.extend(history)