themanas021 commited on
Commit
4d9feef
Β·
1 Parent(s): 1db1818

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -115,9 +115,9 @@ def get_file_size(file):
115
 
116
  # Display conversation history using Streamlit messages
117
  def display_conversation(history):
118
- for i in range(len(_history["generated"])):
119
- st.message(_history["past"][i], is_user=True, key=str(i) + "_user")
120
- st.message(_history["generated"][i], key=str(i))
121
 
122
  def main():
123
  st.markdown("<h1 style='text-align: center; color: blue;'>Chat with your PDF πŸ¦œπŸ“„ </h1>", unsafe_allow_html=True)
 
115
 
116
  # Display conversation history using Streamlit messages
117
  def display_conversation(history):
118
+ for i in range(len(history["generated"])):
119
+ st.message(history["past"][i], is_user=True, key=str(i) + "_user")
120
+ st.message(history["generated"][i], key=str(i))
121
 
122
  def main():
123
  st.markdown("<h1 style='text-align: center; color: blue;'>Chat with your PDF πŸ¦œπŸ“„ </h1>", unsafe_allow_html=True)