Spaces:
Runtime error
Runtime error
Commit
Β·
4d9feef
1
Parent(s):
1db1818
Update app.py
Browse files
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(
|
119 |
-
st.message(
|
120 |
-
st.message(
|
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)
|