Update app.py
Browse files
app.py
CHANGED
|
@@ -154,8 +154,8 @@ def answer_question(context, question):
|
|
| 154 |
return "Please enter your Question"
|
| 155 |
|
| 156 |
messages = [
|
| 157 |
-
|
| 158 |
-
{"role":"system", "content": SYSTEM_MESSAGE},
|
| 159 |
{"role": "user", "content": f"Context: {context}\n Question: {question}"}
|
| 160 |
]
|
| 161 |
|
|
|
|
| 154 |
return "Please enter your Question"
|
| 155 |
|
| 156 |
messages = [
|
| 157 |
+
{"role": "system", "content": "You are a helpful assistant who can answer questions based on the given context."},
|
| 158 |
+
# {"role":"system", "content": SYSTEM_MESSAGE},
|
| 159 |
{"role": "user", "content": f"Context: {context}\n Question: {question}"}
|
| 160 |
]
|
| 161 |
|