Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -73,11 +73,11 @@ if text:
|
|
73 |
|
74 |
st.session_state.history += "Based on the following information" + answer +"answer this question:" + text + "by reasoning step by step" # Add new text to history
|
75 |
# out = pipe(st.session_state.history) # Generate output based on history
|
76 |
-
|
77 |
messages = [
|
78 |
{
|
79 |
"role": "system",
|
80 |
-
"content":
|
81 |
},
|
82 |
{"role": "user", "content": text"},
|
83 |
]
|
|
|
73 |
|
74 |
st.session_state.history += "Based on the following information" + answer +"answer this question:" + text + "by reasoning step by step" # Add new text to history
|
75 |
# out = pipe(st.session_state.history) # Generate output based on history
|
76 |
+
content = "You are a friendly chatbot who answers question based on the info that I give you:" + answer
|
77 |
messages = [
|
78 |
{
|
79 |
"role": "system",
|
80 |
+
"content": content,
|
81 |
},
|
82 |
{"role": "user", "content": text"},
|
83 |
]
|