Spaces:
Runtime error
Runtime error
Commit
Β·
f0858d7
1
Parent(s):
4296f5a
Update app.py
Browse files
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(
|
| 118 |
-
for i in range(len(
|
| 119 |
-
message(
|
| 120 |
-
message(
|
| 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)
|