Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|