kavyatayal commited on
Commit
4974f80
·
verified ·
1 Parent(s): 213a051

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -109,8 +109,7 @@ def respond(message, 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,8 +127,7 @@ def respond(message, history):
128
  f"Context:\n{best_recipes_chunk}\n\n"
129
  f"Question: {message}"
130
  )
131
- }
132
- ]
133
 
134
  if history:
135
  messages.extend(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
  f"Context:\n{best_recipes_chunk}\n\n"
128
  f"Question: {message}"
129
  )
130
+ }]
 
131
 
132
  if history:
133
  messages.extend(history)