Skip to content

Commit d2629e4

Browse files
authored
Update app.py
1 parent d708727 commit d2629e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def main():
112112
st.write(prompt)
113113

114114
prompt_template = PromptTemplate(
115-
template=TEMPLATE, input_variables=["input",st.session_state.messages]
115+
template=TEMPLATE, input_variables=["input"]
116116
)
117117

118118
if "model" in st.session_state:
@@ -124,7 +124,7 @@ def main():
124124
if st.session_state.messages[-1]["role"] != "assistant":
125125
with st.chat_message("assistant"):
126126
with st.spinner("Generating..."):
127-
response = llm_chain.invoke(prompt)
127+
response = llm_chain.invoke("input": prompt,)
128128
st.markdown(response)
129129
message = {
130130
"role": "assistant",

0 commit comments

Comments
 (0)