Update app.py
Browse files
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 |
-
|
|
|
|
| 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"):
|