KvrParaskevi commited on
Commit
9f06e2c
1 Parent(s): 5eaf4f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -46,7 +46,8 @@ if input_text := st.chat_input(placeholder="Here you can chat with our hotel boo
46
  with st.spinner("Generating response..."):
47
  #first_answer = llm_chain.predict(input = input_text)
48
  #answer = first_answer.strip()
49
- input = "Human:" + input_text + "Assistant:"
 
50
  answer = re.generate_response(input)
51
 
52
  with st.chat_message("assistant"):
 
46
  with st.spinner("Generating response..."):
47
  #first_answer = llm_chain.predict(input = input_text)
48
  #answer = first_answer.strip()
49
+ prompt = demo_chat.chat_template_prompt()
50
+ input = prompt + input_text + "Assistant:"
51
  answer = re.generate_response(input)
52
 
53
  with st.chat_message("assistant"):