Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
samadpls authored Aug 19, 2024
1 parent d708727 commit d2629e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def main():
st.write(prompt)

prompt_template = PromptTemplate(
template=TEMPLATE, input_variables=["input",st.session_state.messages]
template=TEMPLATE, input_variables=["input"]
)

if "model" in st.session_state:
Expand All @@ -124,7 +124,7 @@ def main():
if st.session_state.messages[-1]["role"] != "assistant":
with st.chat_message("assistant"):
with st.spinner("Generating..."):
response = llm_chain.invoke(prompt)
response = llm_chain.invoke("input": prompt,)
st.markdown(response)
message = {
"role": "assistant",
Expand Down

0 comments on commit d2629e4

Please sign in to comment.