We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d708727 commit d2629e4Copy full SHA for d2629e4
src/app.py
@@ -112,7 +112,7 @@ def main():
112
st.write(prompt)
113
114
prompt_template = PromptTemplate(
115
- template=TEMPLATE, input_variables=["input",st.session_state.messages]
+ template=TEMPLATE, input_variables=["input"]
116
)
117
118
if "model" in st.session_state:
@@ -124,7 +124,7 @@ def main():
124
if st.session_state.messages[-1]["role"] != "assistant":
125
with st.chat_message("assistant"):
126
with st.spinner("Generating..."):
127
- response = llm_chain.invoke(prompt)
+ response = llm_chain.invoke("input": prompt,)
128
st.markdown(response)
129
message = {
130
"role": "assistant",
0 commit comments