themanas021 commited on
Commit
f0858d7
Β·
1 Parent(s): 4296f5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -114,10 +114,10 @@ def get_file_size(file):
114
  # st.markdown(pdf_display, 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
- message(history["past"][i], is_user=True, key=str(i) + "_user")
120
- 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)
 
114
  # st.markdown(pdf_display, 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)