Illia56 commited on
Commit
e0d541d
1 Parent(s): 883b37e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(predict(prompt))
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})