Update app.py
Browse files
app.py
CHANGED
@@ -42,9 +42,9 @@ if prompt := st.chat_input("Ask LLama-2-70b anything..."):
|
|
42 |
# Add user message to chat history
|
43 |
st.session_state.messages.append({"role": "human", "content": prompt})
|
44 |
|
45 |
-
|
46 |
# Display assistant response in chat message container
|
47 |
with st.chat_message("assistant", avatar='🦙'):
|
48 |
-
st.markdown(
|
49 |
# Add assistant response to chat history
|
50 |
st.session_state.messages.append({"role": "assistant", "content": response})
|
|
|
42 |
# Add user message to chat history
|
43 |
st.session_state.messages.append({"role": "human", "content": prompt})
|
44 |
|
45 |
+
response = predict(prompt)
|
46 |
# Display assistant response in chat message container
|
47 |
with st.chat_message("assistant", avatar='🦙'):
|
48 |
+
st.markdown(response)
|
49 |
# Add assistant response to chat history
|
50 |
st.session_state.messages.append({"role": "assistant", "content": response})
|